Skip to content

Commit

Permalink
[AIX][compiler-rt] Fix missing dependency of parent target
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
bzEq committed Jul 11, 2022
1 parent ad4b7fb commit 22b8a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/cmake/Modules/CompilerRTAIXUtils.cmake
Expand Up @@ -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()

0 comments on commit 22b8a19

Please sign in to comment.