From cdcec1fc713fb43635cbb474fa25a74bf8f3cefd Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Fri, 16 Feb 2024 17:07:21 -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: 607841099 --- 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