Skip to content

Fix .bat launcher to allow special characters#14260

Merged
sbc100 merged 1 commit intomainfrom
fix_bat_launcher
May 22, 2021
Merged

Fix .bat launcher to allow special characters#14260
sbc100 merged 1 commit intomainfrom
fix_bat_launcher

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented May 22, 2021

Using $* inside the if/else blocks here was confusing the bat file
processor making it impossible to support commands that contains braces
and exclamation points.

There was an attempted fix made in #13723 which seemed hopefull but it
prevented the exclamation point. Hopefully this will fix both cases.

Thanks to Mysoft on discord for the suggestion.

Fixes: #14063

@sbc100 sbc100 force-pushed the fix_bat_launcher branch 5 times, most recently from 288465c to a80525c Compare May 22, 2021 03:40
@sbc100 sbc100 requested review from aheejin and juj May 22, 2021 03:40
Copy link
Member

@aheejin aheejin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you for fixing my failed attempt 😅

# only limited tests here, it's more efficient to build on demand
- run-tests:
test_targets: "other.test_emcc_cflags other.test_stdin other.test_bad_triple wasm2.test_sse1 wasm2.test_ccall other.test_closure_externs other.test_binaryen_debug other.test_js_optimizer_parse_error other.test_output_to_nowhere other.test_emcc_dev_null other.test_cmake* other.test_system_include_paths other.test_emar_response_file wasm2.test_utf16"
test_targets: "other.test_emcc_cflags other.test_stdin other.test_bad_triple wasm2.test_sse1 wasm2.test_ccall other.test_closure_externs other.test_binaryen_debug other.test_js_optimizer_parse_error other.test_output_to_nowhere other.test_emcc_dev_null other.test_cmake* other.test_system_include_paths other.test_emar_response_file wasm2.test_utf16 other.test_special_chars_in_arguments"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this list of tests for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is subset of tests that we run on windows during github CI.

Using $* inside the if/else blocks here was confusing the bat file
processor making it impossible to support commands that contains braces
and exclamation points.

There was an attempted fix made in #13723 which seemed hopefull but it
prevented the exclamation point.  Hopefully this will fix both cases.

Thanks to Mysoft on discord for the suggestion.

Fixes: #14063
@sbc100 sbc100 force-pushed the fix_bat_launcher branch from a80525c to 926b653 Compare May 22, 2021 03:52
@sbc100 sbc100 enabled auto-merge (squash) May 22, 2021 03:58
@sbc100
Copy link
Collaborator Author

sbc100 commented May 22, 2021

This failures are unrealted.. i think they are occurring because 2.0.21 LTO RC3 just landed in emscripten releases and ./emsdk install tot is treating that as the most recent build even though it is built from 2.0.21 which is several revisions ago.

@sbc100 sbc100 disabled auto-merge May 22, 2021 04:54
@sbc100 sbc100 merged commit 4dfdf67 into main May 22, 2021
@sbc100 sbc100 deleted the fix_bat_launcher branch May 22, 2021 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

emcc doesn't work with filenames/paths with ! sign

2 participants