Skip to content

Commit 5dc5fda

Browse files
committed
Add a feature to compile intrinsics that are missing on the system for testing
1 parent ca0dcc4 commit 5dc5fda

File tree

3 files changed

+201
-100
lines changed

3 files changed

+201
-100
lines changed

Cargo.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cc = { optional = true, version = "1.0" }
3939
panic-handler = { path = 'crates/panic-handler' }
4040

4141
[features]
42-
default = ["compiler-builtins"]
42+
default = ["compiler-builtins", "complete-system-rt"]
4343

4444
# Enable compilation of C code in compiler-rt, filling in some more optimized
4545
# implementations and also filling in unimplemented intrinsics
@@ -77,6 +77,12 @@ public-test-deps = []
7777
# it during linking.
7878
weak-intrinsics = []
7979

80+
# On some systems, there are no symbols available in their vendored compiler-rt
81+
# that we would want to use for testing, e.g. MacOS does not provide `f128`
82+
# intrinsics. Enabling this feature builds missing symbols from C so we have
83+
# something to test against.
84+
complete-system-rt = ["cc"]
85+
8086
[[example]]
8187
name = "intrinsics"
8288
required-features = ["compiler-builtins"]

0 commit comments

Comments
 (0)