diff --git a/utils/lit/lit/util.py b/utils/lit/lit/util.py index 609011b1972..be37998c6f1 100644 --- a/utils/lit/lit/util.py +++ b/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()