forked from OSchip/llvm-project
20 lines
343 B
CMake
20 lines
343 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Object
|
|
Option
|
|
Support
|
|
)
|
|
|
|
set(LLVM_TARGET_DEFINITIONS Opts.td)
|
|
tablegen(LLVM Opts.inc -gen-opt-parser-defs)
|
|
add_public_tablegen_target(SizeOptsTableGen)
|
|
|
|
add_llvm_tool(llvm-size
|
|
llvm-size.cpp
|
|
DEPENDS
|
|
SizeOptsTableGen
|
|
)
|
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
add_llvm_tool_symlink(size llvm-size)
|
|
endif()
|