[flang-commits] [flang] 97a71ae - [flang][cmake] Set the default for FLANG_BUILD_NEW_DRIVER for oot builds

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Mon May 24 13:11:10 PDT 2021


Author: Andrzej Warzynski
Date: 2021-05-24T20:10:11Z
New Revision: 97a71ae6259191c09de644c55deb4448a259a1b1

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

LOG: [flang][cmake] Set the default for FLANG_BUILD_NEW_DRIVER for oot builds

For out-of-tree builds of Flang, FLANG_BUILD_NEW_DRIVER is not inherited
from llvm-project/llvm/CMakeLists.txt. Instead, a separate definition is
required (but only for out-of-tree builds).

Differential Revision: https://reviews.llvm.org/D102323

Added: 
    

Modified: 
    flang/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index 37c881319ae6..009092247c00 100644
--- a/flang/CMakeLists.txt
+++ b/flang/CMakeLists.txt
@@ -26,6 +26,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
   project(Flang)
   set(FLANG_STANDALONE_BUILD ON)
 
+  # For in-tree builds, this variable is inherited from
+  # llvm-project/llvm/CMakeLists.txt. For out-of-tree builds, we need a
+  # separate definition.
+  option(FLANG_BUILD_NEW_DRIVER "Build the flang compiler driver" ON)
+
   set(FLANG_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
   if (NOT MSVC_IDE)
     set(LLVM_ENABLE_ASSERTIONS ${ENABLE_ASSERTIONS}


        


More information about the flang-commits mailing list