Skip to content

Commit 6151bf6

Browse files
committed
Add SWIFT_BUILD_SWIFT_SYNTAX check
1 parent 7296909 commit 6151bf6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/Frontend/PrintingDiagnosticConsumer.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ class PrintingDiagnosticConsumer : public DiagnosticConsumer {
4242
SmallVector<std::string, 1> BufferedEducationalNotes;
4343
bool SuppressOutput = false;
4444

45+
#if SWIFT_BUILD_SWIFT_SYNTAX
4546
/// swift-syntax rendering
4647
DiagnosticBridge DiagBridge;
47-
48+
#endif
49+
4850
public:
4951
PrintingDiagnosticConsumer(llvm::raw_ostream &stream = llvm::errs());
5052
~PrintingDiagnosticConsumer();

0 commit comments

Comments
 (0)