Skip to content

Commit 043cdf0

Browse files
authored
[AIX] Remove POST_BUILD from add_custom_command() (#163613)
This PR removes the `POST_BUILD` keyword, which is not supported with `add_custom_command(OUTPUT)` and causes build failures in newer versions of CMake.
1 parent 67636d7 commit 043cdf0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler-rt/cmake/Modules/CompilerRTAIXUtils.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ macro(archive_aix_libatomic name libname)
3434
if(TARGET ${target})
3535
file(MAKE_DIRECTORY ${output_dir})
3636
add_custom_command(OUTPUT "${output_dir}/libatomic.so.1"
37-
POST_BUILD
3837
COMMAND ${CMAKE_COMMAND} -E
3938
copy "$<TARGET_FILE:${target}>"
4039
"${output_dir}/libatomic.so.1"
4140
# If built with MODULE, F_LOADONLY is set.
42-
# We have to remove this flag at POST_BUILD.
4341
COMMAND ${CMAKE_STRIP} -X32_64 -E
4442
"${output_dir}/libatomic.so.1"
4543
DEPENDS ${target})

0 commit comments

Comments
 (0)