Skip to content

Commit 627b347

Browse files
authored
[ATfE] rename VERSION.TXT in overlay packages (arm#507)
[ATfE] rename VERSION.txt in overlay packages The file currently has the same name in an overlay package as it does in the base toolchain that the overlay is installed on top of, so when unpacking the overlay package, the two files collide and the base toolchain's version is overwritten.
1 parent a2b3066 commit 627b347

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

arm-software/embedded/CMakeLists.txt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -569,12 +569,20 @@ add_custom_target(
569569
-P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/generate_version_txt.cmake
570570
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/VERSION.txt
571571
)
572-
install(
573-
FILES
574-
${CMAKE_CURRENT_BINARY_DIR}/VERSION.txt
575-
DESTINATION .
576-
COMPONENT llvm-toolchain-third-party-licenses
577-
)
572+
if(NOT (LLVM_TOOLCHAIN_C_LIBRARY STREQUAL picolibc))
573+
install(
574+
FILES "${CMAKE_CURRENT_BINARY_DIR}/VERSION.txt"
575+
DESTINATION .
576+
RENAME VERSION_${LLVM_TOOLCHAIN_C_LIBRARY}.txt
577+
COMPONENT llvm-toolchain-third-party-licenses
578+
)
579+
else()
580+
install(
581+
FILES "${CMAKE_CURRENT_BINARY_DIR}/VERSION.txt"
582+
DESTINATION .
583+
COMPONENT llvm-toolchain-third-party-licenses
584+
)
585+
endif()
578586

579587

580588
# Groups all the targets that comprise the toolchain.

0 commit comments

Comments
 (0)