[llvm] e267df8 - Use cmake Python3_EXECUTABLE variable instead of hardcoding
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Thu May 26 14:49:04 PDT 2022
Author: Matthias Braun
Date: 2022-05-26T14:48:45-07:00
New Revision: e267df8ce8d86ba14187b316ad2495afaebe9a44
URL: https://github.com/llvm/llvm-project/commit/e267df8ce8d86ba14187b316ad2495afaebe9a44
DIFF: https://github.com/llvm/llvm-project/commit/e267df8ce8d86ba14187b316ad2495afaebe9a44.diff
LOG: Use cmake Python3_EXECUTABLE variable instead of hardcoding
Added:
Modified:
llvm/cmake/modules/TensorFlowCompile.cmake
Removed:
################################################################################
diff --git a/llvm/cmake/modules/TensorFlowCompile.cmake b/llvm/cmake/modules/TensorFlowCompile.cmake
index 4f79f6653c88..861e559a3813 100644
--- a/llvm/cmake/modules/TensorFlowCompile.cmake
+++ b/llvm/cmake/modules/TensorFlowCompile.cmake
@@ -31,7 +31,7 @@ function(generate_mock_model generator output)
tf_get_absolute_path(${generator} ${CMAKE_CURRENT_SOURCE_DIR} generator_absolute_path)
tf_get_absolute_path(${output} ${CMAKE_CURRENT_BINARY_DIR} output_absolute_path)
message(WARNING "Autogenerated mock models should not be used in production builds.")
- execute_process(COMMAND python3
+ execute_process(COMMAND ${Python3_EXECUTABLE}
${generator_absolute_path}
${output_absolute_path}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
More information about the llvm-commits
mailing list