Use emit=link for auxiliary proc macro crates

This commit is contained in:
Eduardo Broto
2020-09-25 15:46:32 +02:00
parent fd0656109f
commit 1cb3c00cba
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
// compile-flags: --emit=link
// no-prefer-dynamic
#![crate_type = "proc-macro"]
+1
View File
@@ -1,3 +1,4 @@
// compile-flags: --emit=link
// no-prefer-dynamic
#![crate_type = "proc-macro"]
@@ -1,3 +1,4 @@
// compile-flags: --emit=link
// no-prefer-dynamic
// ^ compiletest by default builds all aux files as dylibs, but we don't want that for proc-macro
// crates. If we don't set this, compiletest will override the `crate_type` attribute below and