diff options
Diffstat (limited to 'scripts/test')
-rwxr-xr-x | scripts/test/generate_lld_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/test/generate_lld_tests.py b/scripts/test/generate_lld_tests.py index 31634e7b0..740a08591 100755 --- a/scripts/test/generate_lld_tests.py +++ b/scripts/test/generate_lld_tests.py @@ -61,7 +61,6 @@ def generate_wast_files(llvm_bin, emscripten_root): os.path.join(llvm_bin, 'wasm-ld'), '-flavor', 'wasm', '-z', '-stack-size=1048576', obj_path, '-o', wasm_path, - '--entry=main', '--allow-undefined', '--export', '__wasm_call_ctors', '--global-base=568', @@ -70,6 +69,8 @@ def generate_wast_files(llvm_bin, emscripten_root): compile_cmd.append('-fPIC') compile_cmd.append('-fvisibility=default') link_cmd.append('-shared') + else: + link_cmd.append('--entry=main') try: run_command(compile_cmd) |