Skip to content

Commit 1cb3c00

Browse files
committed
Use emit=link for auxiliary proc macro crates
1 parent fd06561 commit 1cb3c00

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/ui/auxiliary/proc_macro_attr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// compile-flags: --emit=link
12
// no-prefer-dynamic
23

34
#![crate_type = "proc-macro"]

tests/ui/auxiliary/proc_macro_derive.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// compile-flags: --emit=link
12
// no-prefer-dynamic
23

34
#![crate_type = "proc-macro"]

tests/ui/crashes/auxiliary/proc_macro_crash.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// compile-flags: --emit=link
12
// no-prefer-dynamic
23
// ^ compiletest by default builds all aux files as dylibs, but we don't want that for proc-macro
34
// crates. If we don't set this, compiletest will override the `crate_type` attribute below and

0 commit comments

Comments
 (0)