[flang-commits] [flang] 4ab5e90 - [flang][Driver] Add correct libraries to driver

via flang-commits flang-commits at lists.llvm.org
Fri Nov 22 13:20:22 PST 2024


Author: Tarun Prabhu
Date: 2024-11-22T14:20:19-07:00
New Revision: 4ab5e90c9c52fcf9b4ed297c887b31219e41f7d8

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

LOG: [flang][Driver] Add correct libraries to driver

A recent commit (23d7a6cedb519853508) introduced a dependency on
libLLVMMC.so. This is to handle the `-print-supported-cpus` option which
uses `llvm/MC/SubtargetInfo`. It requires libLLVMMC to be linked into
the flang-driver which the previous commit did not do. This fixes that
issue.

Added: 
    

Modified: 
    flang/tools/flang-driver/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/tools/flang-driver/CMakeLists.txt b/flang/tools/flang-driver/CMakeLists.txt
index 9a89a6185a3291..06b61e5951881b 100644
--- a/flang/tools/flang-driver/CMakeLists.txt
+++ b/flang/tools/flang-driver/CMakeLists.txt
@@ -6,6 +6,7 @@ link_directories(${LLVM_LIBRARY_DIR})
 
 set( LLVM_LINK_COMPONENTS
   ${LLVM_TARGETS_TO_BUILD}
+  MC
   Option
   Support
   TargetParser


        


More information about the flang-commits mailing list