mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 03:16:05 +03:00
Revert to previous define-on-declare solution for -dllimport=defaultLibsOnly (#3932)
See #3931 for context.
This commit is contained in:
parent
5d1080c26d
commit
f068482026
4 changed files with 26 additions and 16 deletions
|
@ -138,8 +138,8 @@ int linkObjToBinaryMSVC(llvm::StringRef outputPath,
|
|||
if (willLinkAgainstSharedDefaultLibs) {
|
||||
// Suppress linker warning LNK4217 wrt. 'importing locally defined symbol'
|
||||
// (dllimport of symbol dllexported from the same binary), because there
|
||||
// might be *many* of those (=> instantiated globals) if compiled without
|
||||
// -linkonce-templates.
|
||||
// might be *many* of those (=> instantiated globals) if compiled with
|
||||
// -dllimport=all (and without -linkonce-templates).
|
||||
args.push_back("/IGNORE:4217");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue