Skip to content

Commit

Permalink
Add -no_uuid for hermetic macOS toolchain setup
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 #14168

Filed with apple as FB9727658

Closes #14190.

PiperOrigin-RevId: 407784532
  • Loading branch information
keith authored and copybara-github committed Nov 5, 2021
1 parent e8a066e commit 917e15e
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 917e15e

Please sign in to comment.