From 5c956ba2e147e309da7c4e619587adade1584b7c Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Thu, 30 Jan 2020 22:09:14 -0800 Subject: [PATCH] [AST/ASTDumper] Fix linker error for `SWIFT_BUILD_ONLY_SYNTAXPARSERLIB` build With such a build we avoid linking the `clangAST` library. --- lib/AST/ASTDumper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/AST/ASTDumper.cpp b/lib/AST/ASTDumper.cpp index ae20364d0bb82..dd93348812558 100644 --- a/lib/AST/ASTDumper.cpp +++ b/lib/AST/ASTDumper.cpp @@ -3762,6 +3762,10 @@ void Type::dump() const { } void Type::dump(raw_ostream &os, unsigned indent) const { + #if SWIFT_BUILD_ONLY_SYNTAXPARSERLIB + return; // not needed for the parser library. + #endif + PrintType(os, indent).visit(*this, ""); os << "\n"; }