Skip to content

Commit 7d92609

Browse files
committed
[gn/mac] Fix isysroot flag when building compiler-rt
If the GN arg `sysroot` was set to a root-relative path like e.g. `"//sysroot"`, we weren't rebasing it correctly, leading to warnings from clang about it ignoring a non-existent sysroot. Similar to 6073f87.
1 parent 09f88da commit 7d92609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/gn/build/toolchain/target_flags.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if (current_os == "android") {
4444
if (current_os == "mac") {
4545
target_flags += [
4646
"-isysroot",
47-
mac_sdk_path,
47+
rebase_path(mac_sdk_path, root_build_dir),
4848
# TODO(lgrey): We should be getting this from `compiler_defaults`. Why
4949
# aren't we?
5050
"-mmacos-version-min=10.10",

0 commit comments

Comments
 (0)