Skip to content

Commit

Permalink
attempted fix
Browse files Browse the repository at this point in the history
Signed-off-by: Martmists <[email protected]>
  • Loading branch information
Martmists-GH committed Jul 18, 2024
1 parent 65ae872 commit 80fd552
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ kotlin {
extraOpts("-Xsource-compiler-option", "-std=c++20")
extraOpts("-Xsource-compiler-option", "-O2")

if (target.name.startsWith("macos")) {
extraOpts("-Xsource-compiler-option", "-isystem /opt/homebrew/include")
extraOpts("-Xsource-compiler-option", "-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk")
}

val cppSource = projectDir.resolve("src/lib/cpp").listFiles().filter { it.extension == "cpp" }.map { it.absolutePath }
cppSource.forEach {
extraOpts("-Xcompile-source", it)
Expand Down

0 comments on commit 80fd552

Please sign in to comment.