Skip to content

Commit 5c956ba

Browse files
committed
[AST/ASTDumper] Fix linker error for SWIFT_BUILD_ONLY_SYNTAXPARSERLIB build
With such a build we avoid linking the `clangAST` library.
1 parent b3e4ac8 commit 5c956ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3762,6 +3762,10 @@ void Type::dump() const {
37623762
}
37633763

37643764
void Type::dump(raw_ostream &os, unsigned indent) const {
3765+
#if SWIFT_BUILD_ONLY_SYNTAXPARSERLIB
3766+
return; // not needed for the parser library.
3767+
#endif
3768+
37653769
PrintType(os, indent).visit(*this, "");
37663770
os << "\n";
37673771
}

0 commit comments

Comments
 (0)