SWDEV-526504 - Remove perl dependency in hip/clr build (#964)

* SWDEV-1 - Remove perl dependency in hip/clr build
* SWDEV-1 - use python3 inplace of perl for formatting date,time
This commit is contained in:
Ajay GunaShekar
2025-12-05 08:42:15 -08:00
committed by GitHub
parent 272f06506f
commit d6f6435b88
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ endmacro()
#############################
# Setup version information
#############################
find_package(Perl REQUIRED)
find_package(Python3 COMPONENTS Interpreter REQUIRED)
find_package(Git)
set(ENV{HIP_PATH} "")
@@ -146,7 +146,7 @@ if(GIT_FOUND)
# get date information based on UTC
# use the last two digits of year + week number + day in the week as HIP_VERSION_GITDATE
execute_process(COMMAND ${PERL_EXECUTABLE} "-MPOSIX=strftime" "-le" "print strftime \'%y%W%w\',gmtime(${HIP_VERSION_UNIXDATE})"
execute_process(COMMAND ${Python3_EXECUTABLE} -c "import time; print(time.strftime('%y%W%w', time.gmtime(${HIP_VERSION_UNIXDATE})))"
RESULT_VARIABLE git_result
OUTPUT_VARIABLE git_output
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
-1
View File
@@ -218,7 +218,6 @@ if(USE_PROF_API)
set(PROF_API_GEN "${CMAKE_CURRENT_SOURCE_DIR}/hip_prof_gen.py")
set(PROF_API_LOG "${PROJECT_BINARY_DIR}/hip_prof_gen.log.txt")
set(PROF_API_NEWHDR "${PROJECT_BINARY_DIR}/new_header.h")
find_package(Python3 COMPONENTS Interpreter REQUIRED)
execute_process(COMMAND ${Python3_EXECUTABLE} -c "import CppHeaderParser"
RESULT_VARIABLE CPP_HEADER_PARSER