Skip to content

Commit 133851d

Browse files
committed
Only require the target spec if the c-feature is enabled
fixes rust-lang#87
1 parent 28ac490 commit 133851d

File tree

3 files changed

+330
-328
lines changed

3 files changed

+330
-328
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "compiler_builtins"
55
version = "0.1.0"
66

77
[build-dependencies]
8-
rustc-cfg = "0.3.0"
8+
rustc-cfg = { version = "0.3.0", optional = true }
99

1010
[build-dependencies.gcc]
1111
optional = true
@@ -19,7 +19,7 @@ compiler-rt = { path = "compiler-rt" }
1919

2020
[features]
2121
# Build the missing intrinsics from compiler-rt C source code
22-
c = ["gcc"]
22+
c = ["gcc", "rustc-cfg"]
2323
# Mark this crate as the #![compiler_builtins] crate
2424
compiler-builtins = []
2525
default = ["compiler-builtins"]

0 commit comments

Comments
 (0)