Skip to content

Commit 9578816

Browse files
committed
EMCC: Minor: Slightly more flexible detection
in case they change extension or add suffixes in the future
1 parent 48f0b9d commit 9578816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refresh.template.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ def _emscripten_platform_patch(compile_args: typing.List[str]):
763763
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
764764
"""
765765
emcc_driver = pathlib.Path(compile_args[0])
766-
if emcc_driver.name != 'emcc.sh' and emcc_driver.name != 'emcc.bat':
766+
if not emcc_driver.name.startswith('emcc'):
767767
return compile_args
768768

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

0 commit comments

Comments
 (0)