Skip to content

Commit a2e6591

Browse files
author
Jorge Aparicio
committed
make the gcc crate optional
it's only required when the "c" feature is enabled
1 parent 1550b0d commit a2e6591

File tree

2 files changed

+329
-316
lines changed

2 files changed

+329
-316
lines changed

Cargo.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ version = "0.1.0"
66

77
[build-dependencies]
88
rustc-cfg = "0.3.0"
9-
gcc = "0.3.36"
9+
10+
[build-dependencies.gcc]
11+
optional = true
12+
version = "0.3.36"
1013

1114
[dev-dependencies]
1215
quickcheck = "0.3.1"
@@ -16,7 +19,7 @@ compiler-rt = { path = "compiler-rt" }
1619

1720
[features]
1821
# Build the missing intrinsics from compiler-rt C source code
19-
c = []
22+
c = ["gcc"]
2023
# Mark this crate as the #![compiler_builtins] crate
2124
compiler-builtins = []
2225
default = ["compiler-builtins"]

0 commit comments

Comments
 (0)