wabt/wabt-python.patch
Dominik 'Rathann' Mierzejewski e4d0eabb6c python3 fixes
- disable regress/regress-30.txt until fixed for python3
  (https://github.com/WebAssembly/wabt/issues/1180)
- fix running test/wasm2c/spec tests under python3
  (https://github.com/WebAssembly/wabt/issues/1181)
2019-10-09 11:42:35 +02:00

24 lines
1.1 KiB
Diff

diff -up wabt-1.0.10/CMakeLists.txt.orig wabt-1.0.10/CMakeLists.txt
--- wabt-1.0.10/CMakeLists.txt.orig 2019-03-15 12:53:00.645283108 +0100
+++ wabt-1.0.10/CMakeLists.txt 2019-03-15 12:55:50.734311159 +0100
@@ -425,7 +425,7 @@ if (NOT EMSCRIPTEN)
endif ()
# test running
- find_package(PythonInterp 2.7 REQUIRED)
+ find_package(Python COMPONENTS Interpreter REQUIRED)
set(RUN_TESTS_PY ${WABT_SOURCE_DIR}/test/run-tests.py)
add_custom_target(run-tests
COMMAND ${CMAKE_BINARY_DIR}/wabt-unittests
diff -up wabt-1.0.12/test/run-spec-wasm2c.py.orig wabt-1.0.12/test/run-spec-wasm2c.py
--- wabt-1.0.12/test/run-spec-wasm2c.py.orig 2019-09-25 23:04:14.000000000 +0200
+++ wabt-1.0.12/test/run-spec-wasm2c.py 2019-10-09 10:14:41.905966919 +0200
@@ -98,6 +98,8 @@ def MangleName(s):
result = 'Z_'
for c in s.encode('utf-8'):
# NOTE(binji): Z is not allowed.
+ if type(c) == int:
+ c=chr(c)
if c in '_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY0123456789':
result += c
else: