Fix regression where files were added more than once. #2442

This commit is contained in:
Christoffer Lerno
2025-08-31 12:07:10 +02:00
parent 0c7c5fbd7b
commit c0387221af
2 changed files with 2 additions and 1 deletions

View File

@@ -87,6 +87,7 @@
- `@test`/`@benchmark` on module would attach to interface and regular methods. - `@test`/`@benchmark` on module would attach to interface and regular methods.
- Deprecated `@select` in favor of `???`. - Deprecated `@select` in favor of `???`.
- Enum inference, like `Foo x = $eval("A")`, now works correctly for `$eval`. - Enum inference, like `Foo x = $eval("A")`, now works correctly for `$eval`.
- Fix regression where files were added more than once. #2442
### Stdlib changes ### Stdlib changes
- Add `==` to `Pair`, `Triple` and TzDateTime. Add print to `Pair` and `Triple`. - Add `==` to `Pair`, `Triple` and TzDateTime. Add print to `Pair` and `Triple`.

View File

@@ -622,7 +622,7 @@ static void update_build_target_from_options(BuildTarget *target, BuildOptions *
void init_default_build_target(BuildTarget *target, BuildOptions *options) void init_default_build_target(BuildTarget *target, BuildOptions *options)
{ {
*target = default_build_target; *target = default_build_target;
target->source_dirs = options->files; target->source_dirs = NULL;
target->name = options->output_name; target->name = options->output_name;
target->output_name = options->output_name; target->output_name = options->output_name;
update_build_target_from_options(target, options); update_build_target_from_options(target, options);