diff options
-rwxr-xr-x | test/run-spec-wasm2c.py | 4 | ||||
-rw-r--r-- | test/utils.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/run-spec-wasm2c.py b/test/run-spec-wasm2c.py index e9a93228..c8a1dfcb 100755 --- a/test/run-spec-wasm2c.py +++ b/test/run-spec-wasm2c.py @@ -440,7 +440,7 @@ def main(args): default_compiler = 'cc' if IS_WINDOWS: default_compiler = 'cl.exe' - default_compiler = os.getenv('CC', default_compiler) + default_compiler = os.getenv('WASM2C_CC', os.getenv('CC', default_compiler)) parser = argparse.ArgumentParser() parser.add_argument('-o', '--out-dir', metavar='PATH', help='output directory for files.') @@ -511,7 +511,7 @@ def main(args): '--enable-multi-memory': options.enable_multi_memory}) options.cflags += shlex.split(os.environ.get('WASM2C_CFLAGS', '')) - cc = utils.Executable(options.cc, *options.cflags, forward_stderr=True, + cc = utils.Executable(options.cc, after_args=options.cflags, forward_stderr=True, forward_stdout=False) cc.verbose = options.print_cmd diff --git a/test/utils.py b/test/utils.py index 20bac49c..2c115ad4 100644 --- a/test/utils.py +++ b/test/utils.py @@ -40,7 +40,7 @@ class Executable(object): def __init__(self, exe, *before_args, **kwargs): self.exe = exe self.before_args = list(before_args) - self.after_args = [] + self.after_args = kwargs.get('after_args', []) self.basename = kwargs.get('basename', os.path.basename(exe)).replace('.exe', '') self.error_cmdline = kwargs.get('error_cmdline', True) |