commit | f3d1b2c7818be3fc8f856433092b91c6a8b8cbeb | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Sat Aug 11 21:56:16 2018 -0700 |
committer | Alex Crichton <alex@alexcrichton.com> | Sat Aug 11 21:56:16 2018 -0700 |
tree | 3063a8550c55fe5fc4cc7d181a66c24b68ca6131 | |
parent | 5746c2d63f40693e58402deaa3debd88c99f5074 [diff] [blame] |
Disable linking to `proc_macro` on musl Closes #52
diff --git a/build.rs b/build.rs index 4567b6c..d37ce99 100644 --- a/build.rs +++ b/build.rs
@@ -14,6 +14,12 @@ return } + // There are currently no musl builds of the compiler, so proc_macro is + // always missing, so disable this feature. + 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");