Skip to content

Commit 92c609a

Browse files
cushongoogle-java-format Team
authored and
google-java-format Team
committed
Set -march=compatibility for native-image builds
This avoids CPU features that may not be available on all machines. Currently I'm seeing errors trying to run binaries built on the Github Actions machines locally on a M1. PiperOrigin-RevId: 607847525
1 parent 571c2b6 commit 92c609a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@
319319
<buildArg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</buildArg>
320320
<buildArg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</buildArg>
321321
<buildArg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</buildArg>
322+
<buildArg>-march=compatibility</buildArg>
322323
</buildArgs>
323324
</configuration>
324325
</plugin>

0 commit comments

Comments
 (0)