Skip to content

Commit aca95d1

Browse files
authored
use venv for Tensile create on Linux (#2022) (#2025)
* use venv if vars set TensileCreateLibraryFiles on Linux to match Windows (cherry picked from commit 7dbd723)
1 parent 000e503 commit aca95d1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tensile/cmake/TensileConfig.cmake

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,9 @@ function(TensileCreateLibraryFiles
210210
set(Options ${Options} "--architecture=${archString}")
211211
endif()
212212

213-
if (WIN32)
214-
set(CommandLine ${VIRTUALENV_BIN_DIR}/${VIRTUALENV_PYTHON_EXENAME} ${Script} ${Options} ${Tensile_LOGIC_PATH} ${Tensile_OUTPUT_PATH} HIP)
215-
else()
216-
set(CommandLine ${Script} ${Options} ${Tensile_LOGIC_PATH} ${Tensile_OUTPUT_PATH} HIP)
213+
set(CommandLine ${Script} ${Options} ${Tensile_LOGIC_PATH} ${Tensile_OUTPUT_PATH} HIP)
214+
if (WIN32 OR (VIRTUALENV_BIN_DIR AND VIRTUALENV_PYTHON_EXENAME))
215+
set(CommandLine ${VIRTUALENV_BIN_DIR}/${VIRTUALENV_PYTHON_EXENAME} ${CommandLine})
217216
endif()
218217
message(STATUS "Tensile_CREATE_COMMAND: ${CommandLine}")
219218

0 commit comments

Comments
 (0)