Skip to content

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed
 

‎src/libproc_macro/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@ version = "0.0.0"
55

66
[lib]
77
path = "lib.rs"
8-
crate-type = ["dylib"]
9-

‎src/librustc/middle/dependency_format.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,8 @@ fn calculate_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
127127
sess.crt_static() => Linkage::Static,
128128
config::CrateType::Executable => Linkage::Dynamic,
129129

130-
// proc-macro crates are required to be dylibs, and they're currently
131-
// required to link to libsyntax as well.
132-
config::CrateType::ProcMacro => Linkage::Dynamic,
130+
// proc-macro crates are mostly cdylibs, but we also need metadata.
131+
config::CrateType::ProcMacro => Linkage::Static,
133132

134133
// No linkage happens with rlibs, we just needed the metadata (which we
135134
// got long ago), so don't bother with anything.

‎src/librustc_cratesio_shim/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515

1616
extern crate bitflags;
1717
extern crate log;
18+
extern crate proc_macro;
1819
extern crate unicode_width;

0 commit comments

Comments
 (0)
Please sign in to comment.