From 4dceacb6ff662e382f1385ec038b9fdd062c0ed0 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 11 Feb 2020 18:25:31 -0800 Subject: Convert remaining python scripts to run under python3 (#2643) --- src/passes/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/passes/CMakeLists.txt b/src/passes/CMakeLists.txt index 456854644..6de16a5b2 100644 --- a/src/passes/CMakeLists.txt +++ b/src/passes/CMakeLists.txt @@ -1,6 +1,9 @@ +# Python 3.5 is the version shipped in Ubuntu Xenial +find_package(PythonInterp 3.5 REQUIRED) + add_custom_command( OUTPUT WasmIntrinsics.cpp - COMMAND python ${PROJECT_SOURCE_DIR}/scripts/embedwat.py ${PROJECT_SOURCE_DIR}/src/passes/wasm-intrinsics.wat ${CMAKE_CURRENT_BINARY_DIR}/WasmIntrinsics.cpp + COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/embedwat.py ${PROJECT_SOURCE_DIR}/src/passes/wasm-intrinsics.wat ${CMAKE_CURRENT_BINARY_DIR}/WasmIntrinsics.cpp DEPENDS ${PROJECT_SOURCE_DIR}/scripts/embedwat.py wasm-intrinsics.wat) set(passes_SOURCES -- cgit v1.2.3