From 533ae9b71d88df8d1891c8c653eeb7912b25dbb0 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 13 Apr 2010 22:47:43 +0000 Subject: [PATCH] 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 --- lib/Target/ARM/CMakeLists.txt | 1 + lib/Target/X86/CMakeLists.txt | 1 + tools/edis/CMakeLists.txt | 18 +----------------- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/lib/Target/ARM/CMakeLists.txt b/lib/Target/ARM/CMakeLists.txt index bbc0095f6ae..e2b073fab5f 100644 --- a/lib/Target/ARM/CMakeLists.txt +++ b/lib/Target/ARM/CMakeLists.txt @@ -10,6 +10,7 @@ tablegen(ARMGenAsmWriter.inc -gen-asm-writer) tablegen(ARMGenDAGISel.inc -gen-dag-isel) tablegen(ARMGenCallingConv.inc -gen-callingconv) tablegen(ARMGenSubtarget.inc -gen-subtarget) +tablegen(ARMGenEDInfo.inc -gen-enhanced-disassembly-info) add_llvm_target(ARMCodeGen ARMBaseInstrInfo.cpp diff --git a/lib/Target/X86/CMakeLists.txt b/lib/Target/X86/CMakeLists.txt index 22285f19323..cac32dbb0b2 100644 --- a/lib/Target/X86/CMakeLists.txt +++ b/lib/Target/X86/CMakeLists.txt @@ -13,6 +13,7 @@ tablegen(X86GenDAGISel.inc -gen-dag-isel) tablegen(X86GenFastISel.inc -gen-fast-isel) tablegen(X86GenCallingConv.inc -gen-callingconv) tablegen(X86GenSubtarget.inc -gen-subtarget) +tablegen(X86GenEDInfo.inc -gen-enhanced-disassembly-info) set(sources SSEDomainFix.cpp diff --git a/tools/edis/CMakeLists.txt b/tools/edis/CMakeLists.txt index 5f11ab4798d..f7a199d597b 100644 --- a/tools/edis/CMakeLists.txt +++ b/tools/edis/CMakeLists.txt @@ -1,4 +1,3 @@ -set(SHARED_LIBRARY TRUE) set(LLVM_NO_RTTI 1) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc @@ -20,22 +19,7 @@ add_llvm_library(EnhancedDisassembly ${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc ) -if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") - # FIXME: Deal with EDIS version? - set_target_properties(EnhancedDisassembly - PROPERTIES - LINK_FLAGS "-avoid-version -Wl,-exported_symbols_list -Wl,${CMAKE_CURRENT_SOURCE_DIR}/EnhancedDisassembly.exports -Wl,-dead_strip -Wl" - ) -endif() - -if(MSVC) - # windows.h doesn't compile with /Za - get_target_property(NON_ANSI_COMPILE_FLAGS CIndex COMPILE_FLAGS) - string(REPLACE /Za "" NON_ANSI_COMPILE_FLAGS ${NON_ANSI_COMPILE_FLAGS}) - set_target_properties(EnhancedDisassembly PROPERTIES COMPILE_FLAGS ${NON_ANSI_COMPILE_FLAGS}) -endif(MSVC) - set_target_properties(EnhancedDisassembly PROPERTIES LINKER_LANGUAGE CXX) - \ No newline at end of file +