Many bots buildling with make have been broken for several days, e.g.
http://lab.llvm.org:8011/builders/lld-x86_64-darwin13
llvm-svn: 342336
-add_llvm_library(LLVMCFIVerify
+add_library(LLVMCFIVerify
+ STATIC
FileAnalysis.cpp
FileAnalysis.h
GraphBuilder.cpp
GraphBuilder.h
+ )
- STATIC
-
- LINK_COMPONENTS
+llvm_update_compile_flags(LLVMCFIVerify)
+llvm_map_components_to_libnames(libs
DebugInfoDWARF
MC
MCParser
Support
Symbolize
)
+target_link_libraries(LLVMCFIVerify ${libs})
+set_target_properties(LLVMCFIVerify PROPERTIES FOLDER "Libraries")
set(LLVM_LINK_COMPONENTS
- MC
Support
native
)
add_llvm_tool(llvm-exegesis
llvm-exegesis.cpp
-
- DEPENDS
- intrinsics_gen
)
add_subdirectory(lib)
${LLVM_BINARY_DIR}/lib/Target/AArch64
)
-add_llvm_library(LLVMExegesisAArch64
- Target.cpp
-
+add_library(LLVMExegesisAArch64
STATIC
+ Target.cpp
+ )
- DEPENDS
- intrinsics_gen
-
- LINK_COMPONENTS
+llvm_update_compile_flags(LLVMExegesisAArch64)
+llvm_map_components_to_libnames(libs
AArch64
Exegesis
)
+
+target_link_libraries(LLVMExegesisAArch64 ${libs})
+set_target_properties(LLVMExegesisAArch64 PROPERTIES FOLDER "Libraries")
set(LLVM_EXEGESIS_TARGETS "${LLVM_EXEGESIS_TARGETS} AArch64" PARENT_SCOPE)
endif()
-set(libs)
-if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
- list(APPEND libs pfm)
-endif()
-
-add_llvm_library(LLVMExegesis
+add_library(LLVMExegesis
+ STATIC
Analysis.cpp
Assembler.cpp
BenchmarkResult.cpp
SnippetGenerator.cpp
Target.cpp
Uops.cpp
+ )
- STATIC
-
- DEPENDS
- intrinsics_gen
-
- LINK_COMPONENTS
+llvm_update_compile_flags(LLVMExegesis)
+llvm_map_components_to_libnames(libs
Analysis
CodeGen
Core
Object
ObjectYAML
Support
-
- LINK_LIBS ${libs}
)
+
+if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
+ list(APPEND libs pfm)
+endif()
+
+target_link_libraries(LLVMExegesis ${libs})
+set_target_properties(LLVMExegesis PROPERTIES FOLDER "Libraries")
${LLVM_BINARY_DIR}/lib/Target/X86
)
-add_llvm_library(LLVMExegesisX86
- Target.cpp
-
+add_library(LLVMExegesisX86
STATIC
+ Target.cpp
+ )
- DEPENDS
- intrinsics_gen
-
- LINK_COMPONENTS
+llvm_update_compile_flags(LLVMExegesisX86)
+llvm_map_components_to_libnames(libs
X86
Exegesis
)
+
+target_link_libraries(LLVMExegesisX86 ${libs})
+set_target_properties(LLVMExegesisX86 PROPERTIES FOLDER "Libraries")
include_directories(${LLVM_MCA_SOURCE_DIR}/include)
-add_llvm_library(LLVMMCA
+add_library(LLVMMCA
+ STATIC
Context.cpp
HWEventListener.cpp
HardwareUnits/HardwareUnit.cpp
Stages/RetireStage.cpp
Stages/Stage.cpp
Support.cpp
+ )
- STATIC
-
- LINK_COMPONENTS
+llvm_update_compile_flags(LLVMMCA)
+llvm_map_components_to_libnames(libs
CodeGen
MC
Support
)
+
+target_link_libraries(LLVMMCA ${libs})
+set_target_properties(LLVMMCA PROPERTIES FOLDER "Libraries")
Support
Symbolize
ARM
- Core
)
add_llvm_unittest(LLVMExegesisARMTests
)
set(LLVM_LINK_COMPONENTS
- Core
MC
MCParser
Object