Skip to content

Commit 3d942d7

Browse files
authored
Merge pull request #34868 from compnerd/spacing-out
build: handle spaces better when boostrapping Ninja
2 parents 48a28ab + dca9f7b commit 3d942d7

File tree

1 file changed

+6
-4
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+6
-4
lines changed

utils/swift_build_support/swift_build_support/products/ninja.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,19 @@ def build(self):
5858
osx_version_min = self.args.darwin_deployment_version_osx
5959
assert sysroot is not None
6060
env = {
61-
"CXX": self.toolchain.cxx,
61+
"CXX": shell._quote(self.toolchain.cxx),
6262
"CFLAGS": (
6363
"-isysroot {sysroot} -mmacosx-version-min={osx_version}"
64-
).format(sysroot=sysroot, osx_version=osx_version_min),
64+
).format(sysroot=shell._quote(sysroot),
65+
osx_version=osx_version_min),
6566
"LDFLAGS": (
6667
"-isysroot {sysroot} -mmacosx-version-min={osx_version}"
67-
).format(sysroot=sysroot, osx_version=osx_version_min),
68+
).format(sysroot=shell._quote(sysroot),
69+
osx_version=osx_version_min),
6870
}
6971
elif self.toolchain.cxx:
7072
env = {
71-
"CXX": self.toolchain.cxx,
73+
"CXX": shell._quote(self.toolchain.cxx),
7274
}
7375

7476
# Ninja can only be built in-tree. Copy the source tree to the build

0 commit comments

Comments
 (0)