Skip to content

Commit 7c4a4cc

Browse files
committed
Re-apply old wasm fix
1 parent 2bcc37e commit 7c4a4cc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib-rt/setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,17 @@ def spawn(self, cmd, **kwargs) -> None: # type: ignore[no-untyped-def]
5757

5858
for path in extra_options.keys():
5959
if path in str(argument):
60+
opts = extra_options[path]
61+
if "PYODIDE_PACKAGE_ABI" in os.environ:
62+
opts += ["-msimd128"]
6063
if compiler_type == "bcpp":
6164
compiler = new_cmd.pop()
6265
# Borland accepts a source file name at the end,
6366
# insert the options before it
64-
new_cmd.extend(extra_options[path])
67+
new_cmd.extend(opts)
6568
new_cmd.append(compiler)
6669
else:
67-
new_cmd.extend(extra_options[path])
70+
new_cmd.extend(opts)
6871

6972
# path component is found, no need to search any further
7073
break

0 commit comments

Comments
 (0)