Correctly build ICU data when building for wasm.

When we use `--disable-tools` (ie, when we are cross-compiling), ICU
will build the data only if it detects we are cross-compiling.

This make sens until we cross-compiling for wasm.
Wasm output is a script file with the interpreter in the sdk we have
installed. So ICU's configure can run the test binary and so doesn't detect
we are cross-compiling.

So we have to patch ICU Makefile to make it build the ICU data anyway.
This commit is contained in:
Matthieu Gautier
2023-11-02 17:33:51 +01:00
parent beadc3b16c
commit 2a5a5c3a42
3 changed files with 16 additions and 0 deletions

View File

@ -189,6 +189,9 @@ class Context:
self.autoskip_file = None
self.no_skip = False
def skip(self, msg=""):
raise SkipCommand(msg)
def try_skip(self, path, extra_name=""):
if self.no_skip:
return