diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc index c629efa9ee..7d68f9fc5f 100755 --- a/Library/Homebrew/shims/super/cc +++ b/Library/Homebrew/shims/super/cc @@ -232,7 +232,7 @@ class Cmd if mac? sdk ||= enum.next # We set the sysroot for macOS SDKs - args << "-isysroot#{sdk}" unless sdk.downcase.include? "osx" + args << "-isysroot#{sdk}" if !sdk.downcase.include?("osx") && !sdk.empty? else args << arg args << enum.next unless sdk