Skip to content

Commit

Permalink
EMCC: Minor: Slightly more flexible detection, in case they change ex…
Browse files Browse the repository at this point in the history
…tension or add suffixes in the future
  • Loading branch information
cpsauer authored Dec 31, 2023
1 parent 48f0b9d commit ab11c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refresh.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ def _emscripten_platform_patch(compile_args: typing.List[str]):
This function has fixes specific to Emscripten platforms, but you should call it on all platforms. It'll determine whether the fixes should be applied or not
"""
emcc_driver = pathlib.Path(compile_args[0])
if emcc_driver.name != 'emcc.sh' and emcc_driver.name != 'emcc.bat':
if not if emcc_driver.name.startswith('emcc'):
return compile_args

workspace_absolute = pathlib.PurePath(os.environ["BUILD_WORKSPACE_DIRECTORY"])
Expand Down

0 comments on commit ab11c93

Please sign in to comment.