From 3171f8fc9e45ea7982960f429f11c4cde0b9bf79 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 20 Sep 2019 19:20:03 -0700 Subject: [PATCH] Revert part of #2281 to allow the possiblity of building under python2 Even though we do support python3 and if the python in your path happens to be python3 that will work just fine, we also want to continue to support those users who still only have python2 (i.e. mac users who are relying on the default system python). See https://github.com/emscripten-core/emsdk/issues/356 --- src/passes/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/passes/CMakeLists.txt b/src/passes/CMakeLists.txt index e63e1ece7ea..41a6a72a6cd 100644 --- a/src/passes/CMakeLists.txt +++ b/src/passes/CMakeLists.txt @@ -1,6 +1,6 @@ add_custom_command( OUTPUT WasmIntrinsics.cpp - COMMAND python3 ${PROJECT_SOURCE_DIR}/scripts/embedwast.py ${PROJECT_SOURCE_DIR}/src/passes/wasm-intrinsics.wast ${CMAKE_CURRENT_BINARY_DIR}/WasmIntrinsics.cpp + COMMAND python ${PROJECT_SOURCE_DIR}/scripts/embedwast.py ${PROJECT_SOURCE_DIR}/src/passes/wasm-intrinsics.wast ${CMAKE_CURRENT_BINARY_DIR}/WasmIntrinsics.cpp DEPENDS ${PROJECT_SOURCE_DIR}/scripts/embedwast.py wasm-intrinsics.wast) SET(passes_SOURCES