superenv: avoid adding blank --isysroot flag

This commit is contained in:
EricFromCanada 2022-06-01 13:58:14 -04:00
parent bdc32c24cc
commit 7c7d7a54c6
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168

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