Skip to content

Commit

Permalink
Add a feature to compile intrinsics that are missing on the system fo…
Browse files Browse the repository at this point in the history
…r testing
  • Loading branch information
tgross35 committed Apr 19, 2024
1 parent ca0dcc4 commit 5dc5fda
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 100 deletions.
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cc = { optional = true, version = "1.0" }
panic-handler = { path = 'crates/panic-handler' }

[features]
default = ["compiler-builtins"]
default = ["compiler-builtins", "complete-system-rt"]

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

# On some systems, there are no symbols available in their vendored compiler-rt
# that we would want to use for testing, e.g. MacOS does not provide `f128`
# intrinsics. Enabling this feature builds missing symbols from C so we have
# something to test against.
complete-system-rt = ["cc"]

[[example]]
name = "intrinsics"
required-features = ["compiler-builtins"]
Expand Down
Loading

0 comments on commit 5dc5fda

Please sign in to comment.