mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Enforce single module compilation for static libraries to make constructors run properly.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
- Contracts on generic modules would evaluate too late, sometimes not catching the error until it already occurred elsewhere.
|
||||
- Fix bug preventing optionals from being used in ranges or as indices.
|
||||
- Crash compiling for arm64 when returning 16 byte and smaller structs by value not a power of 2 #1649.
|
||||
- Enforce single module compilation for static libraries to make constructors run properly.
|
||||
|
||||
### Stdlib changes
|
||||
- Add `io::MultiReader`, `io::MultiWriter`, and `io::TeeReader` structs.
|
||||
|
||||
@@ -297,6 +297,7 @@ static void update_build_target_from_options(BuildTarget *target, BuildOptions *
|
||||
break;
|
||||
case COMMAND_STATIC_LIB:
|
||||
target->type = TARGET_TYPE_STATIC_LIB;
|
||||
target->single_module = true;
|
||||
break;
|
||||
default:
|
||||
target->run_after_compile = false;
|
||||
|
||||
Reference in New Issue
Block a user