Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread committed Nov 24, 2024
1 parent a1025da commit 22f59a2
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,20 @@ object Static {
return emptyList()
}

return process.inputStream.bufferedReader().use { reader ->
reader.readText().split(" ").mapNotNull { it.trim().takeIf { line ->
line.isNotBlank() && line != "-I/usr/include/x86_64-linux-gnu" && line != "-I/usr/include/aarch64-linux-gnu"
} }
var ret: List<String> =
process.inputStream.bufferedReader().use { reader ->
reader.readText().split(" ").mapNotNull { it.trim().takeIf { line ->
line.isNotBlank() && line != "-I/usr/include/x86_64-linux-gnu" && line != "-I/usr/include/aarch64-linux-gnu"
} }
}

if (Platform.getCurrent() == Platform.WINDOWS) {
ret = ret.map {
it.replace("/usr/include", "C:/cygwin/usr/include")
}
}

return ret
}

private fun findExecutable(name: String): String {
Expand Down

0 comments on commit 22f59a2

Please sign in to comment.