Merge pull request #6749 from Bo98/cpp-fix
shims/super/cc: remove isysroot space to fix cpp
This commit is contained in:
commit
a123d90e5d
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user