BLD Fix emcc warning on Python3.8 (#720)

This commit is contained in:
Roman Yurchak 2020-07-11 13:23:45 +02:00 committed by GitHub
parent bc3ffaae42
commit ec249dc282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -11,6 +11,7 @@ geckodriver.log
firefox/
.vscode
.idea
.mypy_cache/
build
downloads

View File

@ -0,0 +1,20 @@
--- emsdk/emsdk/emscripten/tag-1.38.31/emcc.py 2019-04-24 16:21:45.000000000 +0200
+++ emsdk/emsdk/emscripten/tag-1.38.31/emcc.py 2019-04-24 16:21:45.000000000 +0200
@@ -816,7 +816,7 @@
newargs[i] = newargs[i + 1] = ''
if key == 'WASM_BACKEND=1':
exit_with_error('do not set -s WASM_BACKEND, instead set EMCC_WASM_BACKEND=1 in the environment')
- newargs = [arg for arg in newargs if arg is not '']
+ newargs = [arg for arg in newargs if arg != '']
settings_key_changes = set()
for s in settings_changes:
@@ -936,7 +936,7 @@
original_input_files = input_files[:]
- newargs = [a for a in newargs if a is not '']
+ newargs = [a for a in newargs if a != '']
# -c means do not link in gcc, and for us, the parallel is to not go all the way to JS, but stop at bitcode
has_dash_c = '-c' in newargs