Native: fix interop_concurrentRuntime test for mingw_x64
Our sysroot for mingw_x64 still requires -femulated-tls. For C++ code
as well. Without it the test fails with
lld-link: error: undefined symbol: std::__once_call
^KT-46612
This commit is contained in:
committed by
Space Team
parent
080a404d9a
commit
a318cd455d
@@ -5052,6 +5052,10 @@ dynamicTest("interop_concurrentRuntime") {
|
|||||||
source = "interop/concurrentTerminate/reverseInterop.kt"
|
source = "interop/concurrentTerminate/reverseInterop.kt"
|
||||||
cSource = "$projectDir/interop/concurrentTerminate/main.cpp"
|
cSource = "$projectDir/interop/concurrentTerminate/main.cpp"
|
||||||
clangTool = "clang++"
|
clangTool = "clang++"
|
||||||
|
if (project.testTarget == 'mingw_x64') {
|
||||||
|
// Our sysroot for mingw_x64 still requires -femulated-tls. For C++ code as well. See KT-46612.
|
||||||
|
clangFlags += "-femulated-tls"
|
||||||
|
}
|
||||||
outputChecker = { str -> str.startsWith("Uncaught Kotlin exception: kotlin.RuntimeException: Example") }
|
outputChecker = { str -> str.startsWith("Uncaught Kotlin exception: kotlin.RuntimeException: Example") }
|
||||||
expectedExitStatus = 99
|
expectedExitStatus = 99
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user