From ab11c93c66712d048ea5de7758b843136aada8a1 Mon Sep 17 00:00:00 2001 From: Chris Sauer Date: Sun, 31 Dec 2023 14:01:43 -0800 Subject: [PATCH] EMCC: Minor: Slightly more flexible detection, in case they change extension or add suffixes in the future --- refresh.template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refresh.template.py b/refresh.template.py index 3461414..31ec476 100644 --- a/refresh.template.py +++ b/refresh.template.py @@ -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"])