Skip to content

Commit f3d1b2c

Browse files
committed
Disable linking to proc_macro on musl
Closes #52
1 parent 5746c2d commit f3d1b2c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ fn maybe_enable_use_proc_macro(target: &str) {
1414
return
1515
}
1616

17+
// There are currently no musl builds of the compiler, so proc_macro is
18+
// always missing, so disable this feature.
19+
if target.contains("-musl") {
20+
return
21+
}
22+
1723
// Otherwise, only enable it if our feature is actually enabled.
1824
if cfg!(feature = "proc-macro") {
1925
println!("cargo:rustc-cfg=use_proc_macro");

0 commit comments

Comments
 (0)