Skip to content

Commit bad00a6

Browse files
RichBarton-Armbryanpkc
authored andcommitted
[NFC] Add missing ENABLE_CLASSIC_FLANG guard.
Signed-off-by: Richard Barton <[email protected]>
1 parent eef3a12 commit bad00a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5584,9 +5584,11 @@ class ToolSelector final {
55845584
if (!T->hasIntegratedBackend() && !(OutputIsLLVM && T->canEmitIR()))
55855585
return nullptr;
55865586

5587+
#ifdef ENABLE_CLASSIC_FLANG
55875588
// Classic Flang is not integrated with the backend.
55885589
if (C.getDriver().IsFlangMode() && !T->hasIntegratedAssembler())
55895590
return nullptr;
5591+
#endif
55905592

55915593
if (T->canEmitIR() && ((SaveTemps && !InputIsBitcode) || EmbedBitcode))
55925594
return nullptr;

0 commit comments

Comments
 (0)