File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -156,8 +156,12 @@ def walk_sources(directory: str) -> Iterator[str]:
156156 * build_sdl .include_dirs ,
157157]
158158
159- extra_compile_args : list [str ] = [* build_sdl .extra_compile_args ]
160- extra_link_args : list [str ] = [* build_sdl .extra_link_args ]
159+ extra_compile_args : list [str ] = []
160+ extra_link_args : list [str ] = []
161+ if "PYODIDE" not in os .environ :
162+ extra_compile_args .extend (build_sdl .extra_compile_args )
163+ extra_link_args .extend (build_sdl .extra_link_args )
164+
161165sources : list [str ] = []
162166
163167libraries : list [str ] = [* build_sdl .libraries ]
Original file line number Diff line number Diff line change 1717
1818SETUP_DIR = Path (__file__ ).parent # setup.py current directory
1919
20- assert "PYODIDE" in os .environ
21-
2220
2321def get_package_data () -> list [str ]:
2422 """Get data files which will be included in the main tcod/ directory."""
You can’t perform that action at this time.
0 commit comments