kyonifer
01/13/2019, 2:33 AMlinkerOpts
inside the test KotlinNativeCompilation
are ignored when it comes to linking the test debug executable.Dominaezzz
01/13/2019, 2:36 AMkyonifer
01/13/2019, 2:38 AMkyonifer
01/13/2019, 2:43 AMDominaezzz
01/13/2019, 11:58 AMDominaezzz
01/13/2019, 11:59 AMkyonifer
01/13/2019, 3:07 PMlinkerOpts
passed to the KotlinNativeCompilation
for me.ilya.matveev
01/14/2019, 7:46 AM1.3.11
adding options in a test compilation works fine for my playground project but 1.3.20 EAP2
does have a bug preventing it: https://youtrack.jetbrains.com/issue/KT-29254.
If you use 1.3.20 EAP2
, you can specify these options using the binaries DSL:
kotlin {
targets {
fromPreset(presets.macosX64, 'macos') {
binaries.getExecutable('test', 'DEBUG').linkerOpts = ['-L/path/to/libraries']
}
}
}
kyonifer
01/14/2019, 4:13 PM