llvm.org GIT mirror llvm / 533ae9b
Unbreak CMake build by improving the EnhancedDisassembly makefile a bit (we're not trying to build a shared library yet) and generating the X86GenEDInfo.inc and ARMGenEDInfo.inc files as necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101188 91177308-0d34-0410-b5e6-96231b3b80d8 Douglas Gregor 9 years ago
3 changed file(s) with 3 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
99 tablegen(ARMGenDAGISel.inc -gen-dag-isel)
1010 tablegen(ARMGenCallingConv.inc -gen-callingconv)
1111 tablegen(ARMGenSubtarget.inc -gen-subtarget)
12 tablegen(ARMGenEDInfo.inc -gen-enhanced-disassembly-info)
1213
1314 add_llvm_target(ARMCodeGen
1415 ARMBaseInstrInfo.cpp
1212 tablegen(X86GenFastISel.inc -gen-fast-isel)
1313 tablegen(X86GenCallingConv.inc -gen-callingconv)
1414 tablegen(X86GenSubtarget.inc -gen-subtarget)
15 tablegen(X86GenEDInfo.inc -gen-enhanced-disassembly-info)
1516
1617 set(sources
1718 SSEDomainFix.cpp
None set(SHARED_LIBRARY TRUE)
1 set(LLVM_NO_RTTI 1)
21
32 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc
1918 ${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc
2019 )
2120
22 if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
23 # FIXME: Deal with EDIS version?
24 set_target_properties(EnhancedDisassembly
25 PROPERTIES
26 LINK_FLAGS "-avoid-version -Wl,-exported_symbols_list -Wl,${CMAKE_CURRENT_SOURCE_DIR}/EnhancedDisassembly.exports -Wl,-dead_strip -Wl"
27 )
28 endif()
29
30 if(MSVC)
31 # windows.h doesn't compile with /Za
32 get_target_property(NON_ANSI_COMPILE_FLAGS CIndex COMPILE_FLAGS)
33 string(REPLACE /Za "" NON_ANSI_COMPILE_FLAGS ${NON_ANSI_COMPILE_FLAGS})
34 set_target_properties(EnhancedDisassembly PROPERTIES COMPILE_FLAGS ${NON_ANSI_COMPILE_FLAGS})
35 endif(MSVC)
36
3721 set_target_properties(EnhancedDisassembly
3822 PROPERTIES
3923 LINKER_LANGUAGE CXX)
40
24