Don't use static crt by default when build proc-macro.

This commit is contained in:
12101111 2020-03-03 16:17:15 +08:00
parent 97b3d81615
commit 7ca1b2f504
6 changed files with 57 additions and 17 deletions

View 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
}