-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable linking to
proc_macro
on musl
Closes #52
- Loading branch information
1 parent
5746c2d
commit f3d1b2c
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,12 @@ fn maybe_enable_use_proc_macro(target: &str) { | |
return | ||
} | ||
|
||
// There are currently no musl builds of the compiler, so proc_macro is | ||
// always missing, so disable this feature. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
alexcrichton
Author
Contributor
|
||
if target.contains("-musl") { | ||
return | ||
} | ||
|
||
// Otherwise, only enable it if our feature is actually enabled. | ||
if cfg!(feature = "proc-macro") { | ||
println!("cargo:rustc-cfg=use_proc_macro"); | ||
|
What exactly do you mean by this?