Skip to content

Commit

Permalink
[lit] When setting SDKROOT on Darwin, use '--sdk macosx' to find the …
Browse files Browse the repository at this point in the history
…right SDK path.

This will make sure that we find an actual path in case you have Command Line Tools installed.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287403 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
kubamracek committed Nov 18, 2016
1 parent 7ee6add commit f3fc283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/lit/lit/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def usePlatformSdkOnDarwin(config, lit_config):
# default system root path.
if 'darwin' in config.target_triple:
try:
cmd = subprocess.Popen(['xcrun', '--show-sdk-path'],
cmd = subprocess.Popen(['xcrun', '--show-sdk-path', '--sdk', 'macosx'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = cmd.communicate()
out = out.strip()
Expand Down

0 comments on commit f3fc283

Please sign in to comment.