Merge pull request #13361 from EricFromCanada/superenv-blank-isysroot

superenv: avoid adding blank `--isysroot` flag
This commit is contained in:
Mike McQuaid 2022-06-01 19:35:50 +01:00 committed by GitHub
commit 20c845d470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,7 @@ class Cmd
if mac? if mac?
sdk ||= enum.next sdk ||= enum.next
# We set the sysroot for macOS SDKs # 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 else
args << arg args << arg
args << enum.next unless sdk args << enum.next unless sdk