mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
[3.11] gh-95853: Add script to automate WASM build (GH-95828, GH-95985, GH-96045, GH-96389, GH-96744) (GH-96749)
Automate WASM build with a new Python script. The script provides several build profiles with configure flags for Emscripten flavors and WASI. The script can detect and use Emscripten SDK and WASI SDK from default locations or env vars. ``configure`` now detects Node arguments and creates HOSTRUNNER arguments for Node 16. It also sets correct arguments for ``wasm64-emscripten``.
This commit is contained in:
parent
390123b412
commit
4958820032
16 changed files with 1237 additions and 41 deletions
|
@ -6,6 +6,7 @@ import unittest
|
|||
import warnings
|
||||
from unicodedata import normalize
|
||||
from test.support import os_helper
|
||||
from test import support
|
||||
|
||||
|
||||
filenames = [
|
||||
|
@ -123,6 +124,10 @@ class UnicodeFileTests(unittest.TestCase):
|
|||
# NFKD in Python is useless, because darwin will normalize it later and so
|
||||
# open(), os.stat(), etc. don't raise any exception.
|
||||
@unittest.skipIf(sys.platform == 'darwin', 'irrelevant test on Mac OS X')
|
||||
@unittest.skipIf(
|
||||
support.is_emscripten or support.is_wasi,
|
||||
"test fails on Emscripten/WASI when host platform is macOS."
|
||||
)
|
||||
def test_normalize(self):
|
||||
files = set(self.files)
|
||||
others = set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue