llvm.org GIT mirror llvm / 0be1dd2
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 '/'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288385 91177308-0d34-0410-b5e6-96231b3b80d8 Kuba Mracek 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
250250 # default system root path.
251251 if 'darwin' in config.target_triple:
252252 try:
253 cmd = subprocess.Popen(['xcrun', '--show-sdk-path'],
253 cmd = subprocess.Popen(['xcrun', '--show-sdk-path', '--sdk', 'macosx'],
254254 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
255255 out, err = cmd.communicate()
256256 out = out.strip()