From 4ab5e90c9c52fcf9b4ed297c887b31219e41f7d8 Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Fri, 22 Nov 2024 14:20:19 -0700 Subject: [PATCH] [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. --- flang/tools/flang-driver/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/flang/tools/flang-driver/CMakeLists.txt b/flang/tools/flang-driver/CMakeLists.txt index 9a89a6185a329..06b61e5951881 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