[flang-commits] [flang] e4332e4 - [flang] Fix build when examples are disabled

via flang-commits flang-commits at lists.llvm.org
Tue Apr 29 22:42:16 PDT 2025


Author: Alexander Richardson
Date: 2025-04-29T22:42:12-07:00
New Revision: e4332e470678093c42670b594014bce8e91fe31b

URL: https://github.com/llvm/llvm-project/commit/e4332e470678093c42670b594014bce8e91fe31b
DIFF: https://github.com/llvm/llvm-project/commit/e4332e470678093c42670b594014bce8e91fe31b.diff

LOG: [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: https://github.com/llvm/llvm-project/pull/137908

Added: 
    

Modified: 
    flang/test/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/test/CMakeLists.txt b/flang/test/CMakeLists.txt
index 17a7f58902dca..3d5cb38e25ee7 100644
--- a/flang/test/CMakeLists.txt
+++ b/flang/test/CMakeLists.txt
@@ -82,7 +82,7 @@ if (FLANG_INCLUDE_RUNTIME)
   list(APPEND FLANG_TEST_DEPENDS flang_rt.runtime)
 endif ()
 
-if (LLVM_ENABLE_PLUGINS AND NOT WIN32 AND NOT FLANG_STANDALONE_BUILD)
+if (LLVM_BUILD_EXAMPLES AND LLVM_ENABLE_PLUGINS AND NOT WIN32 AND NOT FLANG_STANDALONE_BUILD)
   list(APPEND FLANG_TEST_DEPENDS Bye)
 endif()
 


        


More information about the flang-commits mailing list