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

Andrzej Warzynski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 12 05:35:29 PDT 2021


awarzynski created this revision.
Herald added a subscriber: mgorny.
Herald added a reviewer: sscalpone.
awarzynski requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102323

Files:
  flang/CMakeLists.txt


Index: flang/CMakeLists.txt
===================================================================
--- flang/CMakeLists.txt
+++ flang/CMakeLists.txt
@@ -30,6 +30,11 @@
   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}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102323.344783.patch
Type: text/x-patch
Size: 575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210512/2d6967f7/attachment.bin>


More information about the llvm-commits mailing list