[K/N] Fix windows dynamic tests for LLD

Adjust compilation and linking flags to workaround absence of direct
DLL linkage in LLD.
This commit is contained in:
Sergey Bogolepov
2021-07-24 22:36:41 +07:00
committed by Space
parent c7c78e0e1a
commit 922fcc4049
2 changed files with 13 additions and 1 deletions
@@ -327,6 +327,9 @@ Task dynamicTest(String name, Closure<KonanDynamicTest> configureClosure) {
baseDir "$testOutputLocal/$name"
extraOpts task.flags
extraOpts project.globalTestArgs
if (targetName == "mingw_x64" || targetName == "mingw_x86") {
extraOpts "-linker-option", "-Wl,--out-implib,$testOutputLocal/$name/$targetName/${name}.dll.a"
}
}
}
def buildTask = UtilsKt.findKonanBuildTask(project, name, target)