[PATCH] D89403: [flang] Fix CMake bug in the definition of flang-new
Andrzej Warzynski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 09:50:56 PDT 2020
awarzynski updated this revision to Diff 298171.
awarzynski added a comment.
Revert accidental and unnecessary change
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89403/new/
https://reviews.llvm.org/D89403
Files:
flang/CMakeLists.txt
flang/tools/flang-driver/CMakeLists.txt
Index: flang/tools/flang-driver/CMakeLists.txt
===================================================================
--- flang/tools/flang-driver/CMakeLists.txt
+++ flang/tools/flang-driver/CMakeLists.txt
@@ -4,23 +4,25 @@
# Set your project compile flags.
link_directories(${LLVM_LIBRARY_DIR})
+set( LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ Option
+ Support
+)
+
add_flang_tool(flang-new
driver.cpp
fc1_main.cpp
-
- LINK_COMPONENTS
-
- ${LLVM_COMMON_COMPONENTS}
- Support
- Target
- Option
)
-# Link against LLVM and Clang libraries
target_link_libraries(flang-new
PRIVATE
flangFrontend
flangFrontendTool
+)
+
+clang_target_link_libraries(flang-new
+ PRIVATE
clangDriver
clangBasic
clangFrontend
Index: flang/CMakeLists.txt
===================================================================
--- flang/CMakeLists.txt
+++ flang/CMakeLists.txt
@@ -82,6 +82,10 @@
include(HandleLLVMOptions)
include(VersionFromVCS)
+ if(FLANG_BUILD_NEW_DRIVER)
+ include(AddClang)
+ endif()
+
if(LINK_WITH_FIR)
include(TableGen)
find_package(MLIR REQUIRED CONFIG)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89403.298171.patch
Type: text/x-patch
Size: 1120 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201014/e1c710ef/attachment.bin>
More information about the llvm-commits
mailing list