Skip to content

Commit ec73080

Browse files
committed
Fixup The Cross Build of SwiftSyntax
Propagate DCMAKE_Swift_COMPILER_TARGET with the host architecture of the variant we're trying to build so CMake will forward the correct -arch - which is to say, the triple of the host we're trying to build against, not the machine that it's building on currently. Resolves rdar://80383591, SR-14904
1 parent a34d757 commit ec73080

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/build-parser-lib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ class Builder(object):
169169
"-DSWIFT_HOST_VARIANT=" + self.host,
170170
"-DSWIFT_HOST_VARIANT_SDK=" + host_sdk,
171171
"-DSWIFT_HOST_VARIANT_ARCH=" + self.arch,
172+
"-DCMAKE_Swift_COMPILER_TARGET=" + host_triple,
172173
"-DCMAKE_C_FLAGS=" + llvm_c_flags,
173174
"-DCMAKE_CXX_FLAGS=" + llvm_c_flags,
174175
]

0 commit comments

Comments
 (0)