Native image should not be tied a particular hardware (#7956)

Added `-march=compatibility` argument to native image builds to ensure that we don't generate binaries that cannot be run on a target machine.
This commit is contained in:
Hubert Plociniczak 2023-10-03 20:34:00 +02:00 committed by GitHub
parent 0cd446432f
commit 30100605da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ object NativeImage {
quickBuildOption ++
debugParameters ++ staticParameters ++ configs ++
Seq("--no-fallback", "--no-server") ++
Seq("-march=compatibility") ++
initializeAtBuildtimeOptions ++
initializeAtRuntimeOptions ++
buildMemoryLimitOptions ++