Skip to content

Commit cb9395d

Browse files
committed
test
1 parent 9920a2b commit cb9395d

File tree

4 files changed

+58
-4
lines changed

4 files changed

+58
-4
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
resolver = "2"
33
members = [
44
"builtins-test",
5-
"compiler-builtins",
5+
"builtins-shim",
66
"crates/josh-sync",
77
"crates/libm-macros",
88
"crates/musl-math-sys",
@@ -15,7 +15,7 @@ members = [
1515

1616
default-members = [
1717
"builtins-test",
18-
"compiler-builtins",
18+
"builtins-shim",
1919
"crates/libm-macros",
2020
"libm",
2121
"libm-test",
@@ -26,6 +26,7 @@ exclude = [
2626
# and `mangled-names` disabled, which is the opposite of what is needed for
2727
# other tests, so it makes sense to keep it out of the workspace.
2828
"builtins-test-intrinsics",
29+
"compiler-builtins",
2930
]
3031

3132
[profile.release]

builtins-shim/Cargo.toml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
[package]
2+
name = "compiler_builtins"
3+
version = "0.1.160"
4+
authors = ["Jorge Aparicio <[email protected]>"]
5+
description = "Compiler intrinsics used by the Rust compiler."
6+
repository = "https://github.com/rust-lang/compiler-builtins"
7+
license = "MIT AND Apache-2.0 WITH LLVM-exception AND (MIT OR Apache-2.0)"
8+
edition = "2024"
9+
publish = false
10+
links = "compiler-rt"
11+
12+
build = "../compiler-builtins/build.rs"
13+
14+
[lib]
15+
path = "../compiler-builtins/src/lib.rs"
16+
bench = false
17+
doctest = false
18+
test = false
19+
20+
[build-dependencies]
21+
cc = { optional = true, version = "1.2" }
22+
23+
[features]
24+
default = ["compiler-builtins"]
25+
26+
# Enable compilation of C code in compiler-rt, filling in some more optimized
27+
# implementations and also filling in unimplemented intrinsics
28+
c = ["dep:cc"]
29+
30+
# Workaround for the Cranelift codegen backend. Disables any implementations
31+
# which use inline assembly and fall back to pure Rust versions (if available).
32+
no-asm = []
33+
34+
# Workaround for codegen backends which haven't yet implemented `f16` and
35+
# `f128` support. Disabled any intrinsics which use those types.
36+
no-f16-f128 = []
37+
38+
# Flag this library as the unstable compiler-builtins lib
39+
compiler-builtins = []
40+
41+
# Generate memory-related intrinsics like memcpy
42+
mem = []
43+
44+
# Mangle all names so this can be linked in with other versions or other
45+
# compiler-rt implementations. Also used for testing
46+
mangled-names = []
47+
48+
# Only used in the compiler's build system
49+
rustc-dep-of-std = ["compiler-builtins"]
50+
51+
# This makes certain traits and function specializations public that
52+
# are not normally public but are required by the `builtins-test`
53+
unstable-public-internals = []

builtins-test-intrinsics/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ publish = false
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
compiler_builtins = { path = "../compiler-builtins", features = ["compiler-builtins"] }
9+
compiler_builtins = { path = "../builtins-shim", features = ["compiler-builtins"] }
1010
panic-handler = { path = "../crates/panic-handler" }
1111

1212
[features]

builtins-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rustc_apfloat = "0.2.2"
1717
iai-callgrind = { version = "0.14.1", optional = true }
1818

1919
[dependencies.compiler_builtins]
20-
path = "../compiler-builtins"
20+
path = "../builtins-shim"
2121
default-features = false
2222
features = ["unstable-public-internals"]
2323

0 commit comments

Comments
 (0)