mirror of
https://github.com/apple/pkl.git
synced 2026-05-30 10:30:53 +02:00
Use compatible architecture in native executables (#551)
Use the most compatible architecture; for example, x86-64 instead of x86-64-v3.
This commit is contained in:
@@ -232,6 +232,7 @@ fun Exec.configureExecutable(
|
|||||||
if (!buildInfo.isReleaseBuild) {
|
if (!buildInfo.isReleaseBuild) {
|
||||||
add("-Ob")
|
add("-Ob")
|
||||||
}
|
}
|
||||||
|
add("-march=compatibility")
|
||||||
// native-image rejects non-existing class path entries -> filter
|
// native-image rejects non-existing class path entries -> filter
|
||||||
add("--class-path")
|
add("--class-path")
|
||||||
val pathInput = sourceSets.main.get().output + configurations.runtimeClasspath.get()
|
val pathInput = sourceSets.main.get().output + configurations.runtimeClasspath.get()
|
||||||
@@ -316,7 +317,7 @@ val windowsExecutableAmd64: TaskProvider<Exec> by tasks.registering(Exec::class)
|
|||||||
configureExecutable(
|
configureExecutable(
|
||||||
buildInfo.graalVmAmd64,
|
buildInfo.graalVmAmd64,
|
||||||
layout.buildDirectory.file("executable/pkl-windows-amd64"),
|
layout.buildDirectory.file("executable/pkl-windows-amd64"),
|
||||||
listOf("-Dfile.encoding=UTF-8", "-march=compatibility")
|
listOf("-Dfile.encoding=UTF-8")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user