Commit 2f948ea 1 parent 7641873 commit 2f948ea Copy full SHA for 2f948ea
File tree 1 file changed +5
-9
lines changed
src/librustc_codegen_ssa/back
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -372,15 +372,11 @@ impl<'a> Linker for GccLinker<'a> {
372
372
}
373
373
374
374
fn export_symbols ( & mut self , tmpdir : & Path , crate_type : CrateType ) {
375
- // If we're compiling a dylib, then we let symbol visibility in object
376
- // files to take care of whether they're exported or not.
377
- //
378
- // If we're compiling a cdylib, however, we manually create a list of
379
- // exported symbols to ensure we don't expose any more. The object files
380
- // have far more public symbols than we actually want to export, so we
381
- // hide them all here.
382
- if crate_type == CrateType :: Dylib ||
383
- crate_type == CrateType :: ProcMacro {
375
+ // We manually create a list of exported symbols to ensure we don't expose any more.
376
+ // The object files have far more public symbols than we actually want to export,
377
+ // so we hide them all here.
378
+
379
+ if crate_type == CrateType :: ProcMacro {
384
380
return
385
381
}
386
382
You can’t perform that action at this time.
0 commit comments