Skip to content

Commit 770bdf7

Browse files
committed
Consider DEVELOPER_DIR when building wrapped_clang
1 parent 1387594 commit 770bdf7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tools/cpp/cc_configure.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ cc_autoconf = repository_rule(
165165
"CC_CONFIGURE_DEBUG",
166166
"CC_TOOLCHAIN_NAME",
167167
"CPLUS_INCLUDE_PATH",
168+
"DEVELOPER_DIR",
168169
"GCOV",
169170
"HOMEBREW_RUBY_PATH",
170171
"SYSTEMROOT",

tools/cpp/osx_cc_configure.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def configure_osx_toolchain(repository_ctx, overriden_tools):
114114
xcrun_result = repository_ctx.execute([
115115
"env",
116116
"-i",
117+
"DEVELOPER_DIR={}".format(env.get("DEVELOPER_DIR", default = "")),
117118
"xcrun",
118119
"--sdk",
119120
"macosx",

0 commit comments

Comments
 (0)