shims/super/cc: remove isysroot space to fix cpp

Fixes #5153
This commit is contained in:
Bo Anderson 2019-11-16 15:07:11 +00:00
parent ba3472b28c
commit b4ff330ac1

View File

@ -114,7 +114,7 @@ class Cmd
if tool == "ld" if tool == "ld"
args << "-syslibroot" << sysroot args << "-syslibroot" << sysroot
else else
args << "-isysroot" << sysroot << "--sysroot=#{sysroot}" args << "-isysroot#{sysroot}" << "--sysroot=#{sysroot}"
end end
end end
@ -213,7 +213,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}" unless sdk.downcase.include? "osx"
else else
args << arg << enum.next args << arg << enum.next
end end