Skip to content

Commit 4ab5e90

Browse files
authored
[flang][Driver] Add correct libraries to driver
A recent commit (23d7a6c) 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.
1 parent 028d41d commit 4ab5e90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/tools/flang-driver/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ link_directories(${LLVM_LIBRARY_DIR})
66

77
set( LLVM_LINK_COMPONENTS
88
${LLVM_TARGETS_TO_BUILD}
9+
MC
910
Option
1011
Support
1112
TargetParser

0 commit comments

Comments
 (0)