projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cc58e0
)
[lit] When setting SDKROOT on Darwin, use '--sdk macosx' to find the right SDK path.
author
Kuba Mracek
<mracek@apple.com>
Fri, 18 Nov 2016 23:25:57 +0000
(23:25 +0000)
committer
Kuba Mracek
<mracek@apple.com>
Fri, 18 Nov 2016 23:25:57 +0000
(23:25 +0000)
This will make sure that we find an actual path in case you have Command Line Tools installed.
llvm-svn: 287403
llvm/utils/lit/lit/util.py
patch
|
blob
|
history
diff --git
a/llvm/utils/lit/lit/util.py
b/llvm/utils/lit/lit/util.py
index
609011b
..
be37998
100644
(file)
--- a/
llvm/utils/lit/lit/util.py
+++ b/
llvm/utils/lit/lit/util.py
@@
-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()