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 '/'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288385
91177308-0d34-0410-b5e6-
96231b3b80d8
# 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()