Skip to content

Commit a2207a4

Browse files
fmeumcopybara-github
authored andcommitted
Make Turbine x86_64 native image more compatible
Work towards #20298 Closes #20306. PiperOrigin-RevId: 585558369 Change-Id: I7a1230423479c878f87e37b907078ddd05c3970e
1 parent 7d10999 commit a2207a4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • src/java_tools/buildjar/java/com/google/devtools/build/java/turbine

src/java_tools/buildjar/java/com/google/devtools/build/java/turbine/BUILD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ native_image(
4545
"-H:+StaticExecutableWithDynamicLibC",
4646
],
4747
"//conditions:default": [],
48+
}) + select({
49+
"@platforms//cpu:x86_64": [
50+
# Graal's default settings result in executables that aren't sufficiently compatible for
51+
# general use in Bazel.
52+
"-march=x86-64-v2",
53+
],
54+
"//conditions:default": [],
4855
}),
4956
main_class = _TURBINE_MAIN_CLASS,
5057
# This provides libz.a on Linux instead of the host system.

0 commit comments

Comments
 (0)