mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-28 22:21:31 +03:00
-dllimport=defaultLibsOnly: Avoid -linkonce-templates requirement (#3816)
Via a sorts-of '-linkonce-templates light', only defining all *data* symbols instantiated from druntime/Phobos templates in each referencing CU.
This commit is contained in:
parent
d9b2c936c9
commit
16b9eab374
9 changed files with 35 additions and 34 deletions
|
@ -598,7 +598,7 @@ void DtoDeclareFunction(FuncDeclaration *fdecl, const bool willDefine) {
|
|||
bool defineAsAvailableExternally = false;
|
||||
if (willDefine) {
|
||||
// will be defined anyway after declaration
|
||||
} else if (defineOnDeclare(fdecl)) {
|
||||
} else if (defineOnDeclare(fdecl, /*isFunction=*/true)) {
|
||||
Logger::println("Function is inside a linkonce_odr template, will be "
|
||||
"defined after declaration.");
|
||||
if (fdecl->semanticRun < PASSsemantic3done) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue