Skip to content

Commit d7c8d1e

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

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
@@ -5339,9 +5339,11 @@ class ToolSelector final {
53395339
if (!T->hasIntegratedBackend() && !(OutputIsLLVM && T->canEmitIR()))
53405340
return nullptr;
53415341

5342+
#ifdef ENABLE_CLASSIC_FLANG
53425343
// Classic Flang is not integrated with the backend.
53435344
if (C.getDriver().IsFlangMode() && !T->hasIntegratedAssembler())
53445345
return nullptr;
5346+
#endif
53455347

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

0 commit comments

Comments
 (0)