Skip to content

Commit

Permalink
[5.x] Add -no_uuid for hermetic macOS toolchain setup (bazelbuild#14191)
Browse files Browse the repository at this point in the history
The content based uuid embedded by ld64 contains the basename of the
file being built. In the case of multiarch builds this filename is
randomly generated. This doesn't hit in all cases based on the order of
the arguments to clang, but since this shouldn't have a downside for
this use case, it's safer to exclude this for the future.

More conversation bazelbuild#14168

Filed with apple as FB9727658

(cherry picked from commit d2aab87)
  • Loading branch information
keith committed Nov 5, 2021
1 parent 713abde commit 2cf66f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/cpp/osx_cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def _compile_cc_file(repository_ctx, src_name, out_name):
"-arch",
"x86_64",
"-Wl,-no_adhoc_codesign",
"-Wl,-no_uuid",
"-O3",
"-o",
out_name,
Expand Down

0 comments on commit 2cf66f3

Please sign in to comment.