Skip to content

Commit

Permalink
[flang][Driver] Add correct libraries to driver
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tarunprabhu authored Nov 22, 2024
1 parent 028d41d commit 4ab5e90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flang/tools/flang-driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ link_directories(${LLVM_LIBRARY_DIR})

set( LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
MC
Option
Support
TargetParser
Expand Down

0 comments on commit 4ab5e90

Please sign in to comment.