[PL][tests] Run K/N tests (old infra) with PL enabled

This commit is contained in:
Dmitriy Dolovov
2023-04-03 13:41:28 +02:00
committed by Space Team
parent 9f50f8ff2a
commit 468d524a74
4 changed files with 32 additions and 6 deletions
@@ -147,7 +147,7 @@ abstract class KonanCompileTask: KonanBuildingTask(), KonanCompileSpec {
// Don't include coverage flags into the first stage because they are not supported when compiling a klib.
private fun firstStageExtraOpts() = extraOpts
.excludeFlags("-Xcoverage")
.excludeArguments("-Xcoverage-file", "-Xlibrary-to-cover")
.excludeArguments("-Xcoverage-file", "-Xlibrary-to-cover", "-Xpartial-linkage", "-Xpartial-linkage-loglevel")
// Don't include the -Xemit-lazy-objc-header flag into
// the second stage because this stage have no sources.
@@ -236,6 +236,11 @@ abstract class KonanCompileTask: KonanBuildingTask(), KonanCompileSpec {
addArg("-linker-option", it)
}
if (produce != CompilerOutputKind.LIBRARY) {
add("-Xpartial-linkage=enable")
add("-Xpartial-linkage-loglevel=error")
}
addAll(extraOpts)
allSourceFiles.mapTo(this) { it.absolutePath }