[AIX][compiler-rt] Fix missing dependency of parent target

`add_dependencies(${LIB_PARENT_TARGET} aix-${libname})` should only happen when `aix-${libname}` is added.

Reviewed By: hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D129433
This commit is contained in:
Kai Luo 2022-07-11 10:47:56 +08:00
parent ad4b7fb3ce
commit 22b8a198cf
1 changed files with 1 additions and 1 deletions

View File

@ -75,6 +75,6 @@ macro(archive_aix_libatomic name libname)
DESTINATION ${install_dir})
add_custom_target(aix-${libname}
DEPENDS "${output_dir}/${libname}.a")
add_dependencies(${LIB_PARENT_TARGET} aix-${libname})
endif()
add_dependencies(${LIB_PARENT_TARGET} aix-${libname})
endmacro()