Fix drawergen linking on rpi

This commit is contained in:
Magnus Norddahl 2017-01-10 12:51:35 +01:00
parent 7c04fa6e1b
commit 3487be2c40

View file

@ -28,7 +28,7 @@ if( NOT WIN32 )
irreader transformutils instrumentation profiledata runtimedyld irreader transformutils instrumentation profiledata runtimedyld
object instcombine linker analysis selectiondag scalaropts vectorize executionengine object instcombine linker analysis selectiondag scalaropts vectorize executionengine
mc mcdisassembler mcparser mcjit target x86asmprinter x86info x86desc x86utils x86codegen mc mcdisassembler mcparser mcjit target x86asmprinter x86info x86desc x86utils x86codegen
armasmprinter arminfo armdesc armutils armcodegen ) armasmprinter arminfo armdesc armcodegen )
# Example LLVM_DIR folder: C:/Development/Environment/Src/llvm-3.9.0/build/lib/cmake/llvm # Example LLVM_DIR folder: C:/Development/Environment/Src/llvm-3.9.0/build/lib/cmake/llvm
find_package(LLVM REQUIRED CONFIG) find_package(LLVM REQUIRED CONFIG)
@ -37,6 +37,7 @@ if( NOT WIN32 )
llvm_map_components_to_libnames( llvm_libs ${LLVM_COMPONENTS} ) llvm_map_components_to_libnames( llvm_libs ${LLVM_COMPONENTS} )
include_directories( ${LLVM_INCLUDE_DIRS} ) include_directories( ${LLVM_INCLUDE_DIRS} )
set( DRAWERGEN_LIBS ${DRAWERGEN_LIBS} ${llvm_libs} ) set( DRAWERGEN_LIBS ${DRAWERGEN_LIBS} ${llvm_libs} )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti" )
else() else()
set( LLVM_COMPONENTS core support asmparser asmprinter bitreader bitwriter codegen passes ipo set( LLVM_COMPONENTS core support asmparser asmprinter bitreader bitwriter codegen passes ipo
irreader transformutils instrumentation profiledata debuginfocodeview runtimedyld irreader transformutils instrumentation profiledata debuginfocodeview runtimedyld