mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Recommit r287403 (reverted in r287804): [lit] When setting SDKROOT on Darwin, use '--sdk macosx' to find the right SDK path.
This shouls now be safe and not break any more bots. It's strictly better to use '--sdk macosx', otherwise xcrun can return weird things for example when you have Command Line Tools or the SDK installed into '/'. llvm-svn: 288385
This commit is contained in:
parent
c8b56276e7
commit
57a1014fb2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user