зеркало из https://github.com/microsoft/clang.git
CMake: Fix mingw32 build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113677 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
c5904b40c3
Коммит
28709c14ac
|
@ -88,13 +88,15 @@ macro(add_clang_library name)
|
|||
if( LLVM_LINK_COMPONENTS )
|
||||
llvm_config(${name} ${LLVM_LINK_COMPONENTS})
|
||||
endif( LLVM_LINK_COMPONENTS )
|
||||
get_system_libs(llvm_system_libs)
|
||||
if( llvm_system_libs )
|
||||
target_link_libraries(${name} ${llvm_system_libs})
|
||||
endif( llvm_system_libs )
|
||||
if (LLVM_COMMON_LIBS)
|
||||
target_link_libraries(${name} ${LLVM_COMMON_LIBS})
|
||||
endif()
|
||||
if( NOT MINGW )
|
||||
get_system_libs(llvm_system_libs)
|
||||
if( llvm_system_libs )
|
||||
target_link_libraries(${name} ${llvm_system_libs})
|
||||
endif()
|
||||
endif()
|
||||
add_dependencies(${name} ClangDiagnosticCommon)
|
||||
if(MSVC)
|
||||
get_target_property(cflag ${name} COMPILE_FLAGS)
|
||||
|
|
|
@ -46,8 +46,10 @@ target_link_libraries(clangCodeGen
|
|||
)
|
||||
|
||||
add_dependencies(clangCodeGen
|
||||
ClangARMNeon
|
||||
ClangAttrClasses
|
||||
ClangAttrList
|
||||
ClangDeclNodes
|
||||
ClangStmtNodes
|
||||
ClangDiagnosticFrontend
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче