From 10484fbb296115688409608a8cf087dddaa32f4d Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Wed, 8 Jul 2020 19:12:53 +0300 Subject: [PATCH] Add -Xexpect-actual-linker to the directives parsing --- .../src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build-tools/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy b/build-tools/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy index d2bd89b6380..744368766e7 100644 --- a/build-tools/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy +++ b/build-tools/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy @@ -220,6 +220,10 @@ class RunExternalTestGroup extends JavaExec { line.split(" ").toList().forEach { flags.add("-Xopt-in=$it") } } } + def expectActualLinker = findLinesWithPrefixesRemoved(text, "// EXPECT_ACTUAL_LINKER") + if (expectActualLinker.size() != 0) { + flags.add("-Xexpect-actual-linker") + } } static String markMutableObjects(String text) {