Skip to content

Commit

Permalink
Make Turbine x86_64 native image more compatible
Browse files Browse the repository at this point in the history
Work towards bazelbuild#20298

Closes bazelbuild#20306.

PiperOrigin-RevId: 585558369
Change-Id: I7a1230423479c878f87e37b907078ddd05c3970e
  • Loading branch information
fmeum authored and copybara-github committed Nov 27, 2023
1 parent 7d10999 commit a2207a4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ native_image(
"-H:+StaticExecutableWithDynamicLibC",
],
"//conditions:default": [],
}) + select({
"@platforms//cpu:x86_64": [
# Graal's default settings result in executables that aren't sufficiently compatible for
# general use in Bazel.
"-march=x86-64-v2",
],
"//conditions:default": [],
}),
main_class = _TURBINE_MAIN_CLASS,
# This provides libz.a on Linux instead of the host system.
Expand Down

0 comments on commit a2207a4

Please sign in to comment.