From 1a277de494c7f506303287ff6dc605820f559198 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Fri, 3 Apr 2020 09:45:49 +0100 Subject: [PATCH] shims/mac/super/xcrun: set DEVELOPER_DIR less often --- Library/Homebrew/shims/mac/super/xcrun | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/shims/mac/super/xcrun b/Library/Homebrew/shims/mac/super/xcrun index 167109f306..7f5e95dec0 100755 --- a/Library/Homebrew/shims/mac/super/xcrun +++ b/Library/Homebrew/shims/mac/super/xcrun @@ -3,9 +3,8 @@ # work at all (e.g. CLT-only in the Xcode 4.3 era). This script emulates # it and attempts to avoid these issues. -# SDKROOT is not used if `--sdk` is supplied. -# We however don't want to interrupt other uses like `xcrun --find clang`. -if [[ "$*" =~ (^| )-?-sdk ]]; then +# These could be used in conjunction with `--sdk` which ignores SDKROOT. +if [[ "$*" =~ (^| )-?-show-sdk-(path|version|build) ]]; then export DEVELOPER_DIR=$HOMEBREW_DEVELOPER_DIR else # Some build tools set DEVELOPER_DIR, so discard it