[compiler-rt] 22b8a19 - [AIX][compiler-rt] Fix missing dependency of parent target
Kai Luo via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 10 19:49:46 PDT 2022
Author: Kai Luo
Date: 2022-07-11T10:49:39+08:00
New Revision: 22b8a198cfb1581237f6eb904a53889b13d9a952
URL: https://github.com/llvm/llvm-project/commit/22b8a198cfb1581237f6eb904a53889b13d9a952
DIFF: https://github.com/llvm/llvm-project/commit/22b8a198cfb1581237f6eb904a53889b13d9a952.diff
LOG: [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
Added:
Modified:
compiler-rt/cmake/Modules/CompilerRTAIXUtils.cmake
Removed:
################################################################################
diff --git a/compiler-rt/cmake/Modules/CompilerRTAIXUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTAIXUtils.cmake
index c7dc2b882d056..d28b46463e7f5 100644
--- a/compiler-rt/cmake/Modules/CompilerRTAIXUtils.cmake
+++ b/compiler-rt/cmake/Modules/CompilerRTAIXUtils.cmake
@@ -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()
More information about the llvm-commits
mailing list