Don't use static crt by default when build proc-macro.
This commit is contained in:
parent
97b3d81615
commit
7ca1b2f504
6 changed files with 57 additions and 17 deletions
15
src/test/ui/proc-macro/musl-proc-macro.rs
Normal file
15
src/test/ui/proc-macro/musl-proc-macro.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Test proc-macro crate can be built without addtional RUSTFLAGS
|
||||
// on musl target
|
||||
|
||||
// run-pass
|
||||
// compile-flags: --target=x86_64-unknown-linux-musl
|
||||
#![crate_type = "proc-macro"]
|
||||
|
||||
extern crate proc_macro;
|
||||
|
||||
use proc_macro::TokenStream;
|
||||
|
||||
#[proc_macro_derive(Foo)]
|
||||
pub fn derive_foo(input: TokenStream) -> TokenStream {
|
||||
input
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue