Skip to content

Commit 5a8b584

Browse files
committed
On Darwin, pass CMAKE_OSX_ARCHITECTURES with just the host during the CMake portion of the bootstrap. This makes bootstrapping immune to whatever defaults are set in swift-llbuild's own CMake files.
1 parent 605d50e commit 5a8b584

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Utilities/bootstrap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,10 @@ def build_llbuild(args):
464464
"-DLLBUILD_SUPPORT_BINDINGS:=Swift",
465465
]
466466

467+
# On Darwin, make sure we're building for the host architecture.
468+
if platform.system() == 'Darwin':
469+
flags.append("-DCMAKE_OSX_ARCHITECTURES:=%s" % (get_build_target(args).split('-')[0]))
470+
467471
if args.sysroot:
468472
flags.append("-DSQLite3_INCLUDE_DIR=%s/usr/include" % args.sysroot)
469473

0 commit comments

Comments
 (0)