From eab472f1d7bb3a03bbbb264dc826c8376ff91ddc Mon Sep 17 00:00:00 2001 From: Martmists Date: Fri, 19 Jul 2024 02:47:50 +0200 Subject: [PATCH] Fix macOS llvm directory --- build.gradle.kts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 37fbf74..2fafa2e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,3 @@ -@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER") -import org.jetbrains.kotlin.compilerRunner.konanHome import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget plugins { @@ -87,16 +85,10 @@ kotlin { } if (target.name.startsWith("macos")) { - extraOpts("-Xsource-compiler-option", "-isystem~/.konan/dependencies/llvm-11.1.0-macos-${if (System.getProperty("os.arch") in arrayOf("amd64", "x86_64")) "x64" else "aarch64"}-essentials") + extraOpts("-Xsource-compiler-option", "-isystem~/.konan/dependencies/apple-llvm-20200714-macos-${if (System.getProperty("os.arch") in arrayOf("amd64", "x86_64")) "x64" else "aarch64"}-essentials") extraOpts("-Xsource-compiler-option", "-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk") } - @Suppress("INVISIBLE_MEMBER") - println(konanHome) - - println(target.konanTarget) - println(target.konanTarget.visibleName) - val cppSource = projectDir.resolve("src/lib/cpp").listFiles().filter { it.extension == "cpp" }.map { it.absolutePath } cppSource.forEach { extraOpts("-Xcompile-source", it)