
Rather than requiring users to pass `-m64` to the `llvm-ml` driver to get 64-bit behavior, we add the `llvm-ml64` alias, matching the behavior of `ML.EXE` and `ML64.EXE`. The original flavor/bitness flags still work, but the alias should make some workflows easier. NOTE: The logic for this already existed in the code; we're just finally adding the build/install instructions to match.
27 lines
430 B
CMake
27 lines
430 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
AllTargetsAsmParsers
|
|
AllTargetsDescs
|
|
AllTargetsDisassemblers
|
|
AllTargetsInfos
|
|
MC
|
|
MCParser
|
|
Option
|
|
Support
|
|
TargetParser
|
|
)
|
|
|
|
set(LLVM_TARGET_DEFINITIONS Opts.td)
|
|
|
|
tablegen(LLVM Opts.inc -gen-opt-parser-defs)
|
|
add_public_tablegen_target(MLTableGen)
|
|
|
|
add_llvm_tool(llvm-ml
|
|
llvm-ml.cpp
|
|
Disassembler.cpp
|
|
DEPENDS
|
|
MLTableGen
|
|
GENERATE_DRIVER
|
|
)
|
|
|
|
add_llvm_tool_symlink(llvm-ml64 llvm-ml)
|