We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6bd97 commit ca82c4bCopy full SHA for ca82c4b
plugin/src/main/java/pl/lemanski/plugin/KonanPlugin.kt
@@ -42,7 +42,10 @@ abstract class KonanPlugin : Plugin<Project> {
42
43
libName.set(extension.libName)
44
objectFiles.from(konanClangCompile)
45
- runKonan.set(File(extension.konanPath.get()).resolve("bin/run_konan.bat"))
+ // check if we are on windows
46
+ val isWindows = System.getProperty("os.name").lowercase().contains("windows")
47
+ val scriptPath = if (isWindows) "bin/run_konan.bat" else "bin/run_konan"
48
+ runKonan.set(File(extension.konanPath.get()).resolve(scriptPath))
49
}
50
51
0 commit comments