libatomic.diff

Description: Inject libatomic dependency to fix armel build as in #918060
Author: Paolo Greppi <paolo.greppi@libpf.com>
This commit is contained in:
su-fang 2023-04-25 16:01:35 +08:00
parent a190a58f30
commit c576b23718
2 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,9 @@ if (use_libclang)
else()
set(CLANG_LIBS libclang clang-cpp ${llvm_libs})
endif()
if ($ENV{DEB_HOST_ARCH} STREQUAL "armel")
set(EXTRA_CLANG_LIBS atomic)
endif()
endif()
target_link_libraries(doxyparse
@ -39,6 +42,7 @@ ${SQLITE3_LIBRARIES}
${EXTRA_LIBS}
${CLANG_LIBS}
${COVERAGE_LINKER_FLAGS}
${EXTRA_CLANG_LIBS}
)
install(TARGETS doxyparse DESTINATION bin)

View File

@ -347,6 +347,9 @@ if (use_libclang)
set(CLANG_LIBS libclang clang-cpp)
endif()
target_compile_definitions(doxygen PRIVATE ${LLVM_DEFINITIONS})
if ($ENV{DEB_HOST_ARCH} STREQUAL "armel")
set(EXTRA_CLANG_LIBS atomic)
endif()
endif()
target_link_libraries(doxygen PRIVATE
@ -365,6 +368,7 @@ target_link_libraries(doxygen PRIVATE
${CLANG_LIBS}
${COVERAGE_LINKER_FLAGS}
${DOXYGEN_EXTRA_LINK_OPTIONS}
${EXTRA_CLANG_LIBS}
)
set_project_warnings(doxycfg)