Skip to content

Commit e4332e4

Browse files
authored
[flang] Fix build when examples are disabled
Without this change I get a build error due to the missing Bye target when I configure my build with -DLLVM_INCLUDE_EXAMPLES=OFF. This check for LLVM_BUILD_EXAMPLES matches the checks in llvm and lld. Reviewed By: mgorny Pull Request: llvm#137908
1 parent e803c20 commit e4332e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ if (FLANG_INCLUDE_RUNTIME)
8282
list(APPEND FLANG_TEST_DEPENDS flang_rt.runtime)
8383
endif ()
8484

85-
if (LLVM_ENABLE_PLUGINS AND NOT WIN32 AND NOT FLANG_STANDALONE_BUILD)
85+
if (LLVM_BUILD_EXAMPLES AND LLVM_ENABLE_PLUGINS AND NOT WIN32 AND NOT FLANG_STANDALONE_BUILD)
8686
list(APPEND FLANG_TEST_DEPENDS Bye)
8787
endif()
8888

0 commit comments

Comments
 (0)