Skip to content

Commit 917e15e

Browse files
keithcopybara-github
authored andcommitted
Add -no_uuid for hermetic macOS toolchain setup
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
1 parent e8a066e commit 917e15e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/cpp/osx_cc_configure.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def _compile_cc_file(repository_ctx, src_name, out_name):
102102
"-arch",
103103
"x86_64",
104104
"-Wl,-no_adhoc_codesign",
105+
"-Wl,-no_uuid",
105106
"-O3",
106107
"-o",
107108
out_name,

0 commit comments

Comments
 (0)