Skip to content

Commit d525b83

Browse files
committed
[build-script] Don't try to build llbuild Swift bindings as part of build-script.
- llbuild builds before Swift, so we can't use the Swift compiler we are in the process of building for it. For now, just disable the bindings entirely. This will be a problem if SwiftPM ever decides that it wants to use the Swift bindings to manage builds more effectively.
1 parent 01d4fd5 commit d525b83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/build-script-impl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,6 +1825,9 @@ for deployment_target in "${HOST_TARGET}" "${CROSS_TOOLS_DEPLOYMENT_TARGETS[@]}"
18251825
-DFILECHECK_EXECUTABLE:PATH="$(build_directory_bin ${deployment_target} llvm)/FileCheck"
18261826
-DCMAKE_BUILD_TYPE:STRING="${LLBUILD_BUILD_TYPE}"
18271827
-DLLVM_ENABLE_ASSERTIONS:BOOL=$(true_false "${LLBUILD_ENABLE_ASSERTIONS}")
1828+
# We disable all bindings, since llbuild builds before Swift
1829+
# and can't use the unbuilt `swiftc`.
1830+
-DLLBUILD_SUPPORT_BINDINGS:=
18281831
)
18291832
;;
18301833
swiftpm)

0 commit comments

Comments
 (0)