From 92c609a43bc894e4cd69e9c037491163303d97ed Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Fri, 16 Feb 2024 17:42:59 -0800 Subject: [PATCH] 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 --- core/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/core/pom.xml b/core/pom.xml index 064f9dee8..7b4a1d1f2 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -319,6 +319,7 @@ -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED + -march=compatibility