Skip to content

Commit

Permalink
0.5.3: Single-module not respected.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Dec 26, 2023
1 parent e91f6e2 commit 8962ad2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
7 changes: 2 additions & 5 deletions lib/std/collections/list.c3
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,8 @@ fn Type List.pop_first(&self)
**/
fn void List.remove_at(&self, usz index)
{
for (usz i = index + 1; i < self.size; i++)
{
self.entries[i - 1] = self.entries[i];
}
self.size--;
if (!--self.size || index == self.size) return;
self.entries[index .. self.size - 1] = self.entries[index + 1 .. self.size];
}

fn void List.add_all(&self, List* other_list)
Expand Down
9 changes: 9 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# C3C Release Notes

## 0.5.3 Change list

### Changes / improvements

### Fixes
- Single module command line option not respected.

### Stdlib changes

## 0.5.2 Change list

### Changes / improvements
Expand Down
4 changes: 4 additions & 0 deletions src/build/builder.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ static void update_build_target_from_options(BuildTarget *target, BuildOptions *
{
target->optsize = options->optsize;
}
if (options->single_module != SINGLE_MODULE_NOT_SET)
{
target->single_module = options->single_module;
}
if (options->safety_level != SAFETY_NOT_SET)
{
target->feature.safe_mode = options->safety_level;
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define COMPILER_VERSION "0.5.2"
#define COMPILER_VERSION "0.5.3"

0 comments on commit 8962ad2

Please sign in to comment.