Skip to content

Commit 7b28783

Browse files
committed
[SwiftSyntax] Reference swift as an external project in build-parser-lib
Since the clang 1400 rebranch, we cannot include in `LLVM_ENABLE_PROJECTS` and more and need to explicitly specify source directory.
1 parent ac875d0 commit 7b28783

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/build-parser-lib

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,10 @@ class Builder(object):
226226
if self.version:
227227
cmake_args += ["-DSWIFT_LIBPARSER_VER:STRING=" + self.version]
228228
cmake_args += [
229-
"-DLLVM_ENABLE_PROJECTS=clang;swift",
229+
"-DLLVM_ENABLE_PROJECTS=clang",
230230
"-DLLVM_EXTERNAL_PROJECTS=swift",
231+
'-DLLVM_EXTERNAL_SWIFT_SOURCE_DIR=' +
232+
os.path.join(SWIFT_SOURCE_ROOT, 'swift'),
231233
]
232234
cmake_args += [
233235
"-DSWIFT_BUILD_ONLY_SYNTAXPARSERLIB=TRUE",

0 commit comments

Comments
 (0)