@@ -271,7 +271,7 @@ def get_emscripten_include_dir() -> Path:
271
271
blank_source .write_text ("" )
272
272
subprocess .run (["emcc" , "--use-port=sdl3" , blank_source ], check = True )
273
273
274
- check_sdl_version ()
274
+ # check_sdl_version()
275
275
276
276
SDL_PARSE_PATH : Path | None = None
277
277
SDL_BUNDLE_PATH : Path | None = None
@@ -404,12 +404,11 @@ def get_cdef() -> tuple[str, dict[str, str]]:
404
404
extra_link_args += ["-rpath" , "/usr/local/opt/llvm/lib/" ]
405
405
406
406
if "PYODIDE" in os .environ :
407
- print (f"""EMCC CFLAGS: { subprocess .check_output (["emcc" , "--use-port=sdl3" , "--cflags" ], text = True )!r} """ )
408
407
extra_compile_args += ["--use-port=sdl3" ]
409
408
extra_link_args += ["--use-port=sdl3" ]
410
409
cmake_cmd = ("cmake" , "--find-package" , "-D" , "NAME=SDL3" , "-D" , "COMPILER_ID=GNU" , "-D" , "LANGUAGE=C" )
411
- extra_compile_args += subprocess .check_output ((* cmake_cmd , "-DMODE =COMPILE" ), text = True ).strip ().split ()
412
- extra_link_args += subprocess .check_output ((* cmake_cmd , "-DMODE =LINK" ), text = True ).strip ().split ()
410
+ extra_compile_args += subprocess .check_output ((* cmake_cmd , "-D" , "MODE =COMPILE" ), text = True ).strip ().split ()
411
+ extra_link_args += subprocess .check_output ((* cmake_cmd , "-D" , "MODE =LINK" ), text = True ).strip ().split ()
413
412
print (f"{ extra_compile_args = } " )
414
413
print (f"{ extra_link_args = } " )
415
414
elif sys .platform not in ["win32" , "darwin" ]:
0 commit comments