-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EH] Rename EH library modes and file names (#23452)
- This renames `NoExceptLibrary` to `ExceptionLibrary` - This renames the `Exception.WASM` to `Exceptions.WASM_LEGACY`, given that we plan to add a new mode that uses the standard EH proposal soon, which will be named `Exceptions.WASM`. This PR does not add the new mode yet; it just renames what we already have. - This makes `SjLjLibrary` use `eh_mode` as in `ExceptionLibrary` instead of the current `is_wasm` boolean switch, given that we will need to add another mode that uses the standard EH proposal to it soon. Its `eh_mode` can't be set to `Exceptions.NONE` though. - Library file suffixes changed - `ExceptionLibrary` - `NONE`: `-noexcept` -> `-noexcept` (no change) - `EMSCRIPTEN`: `` -> `` (no change) - `WASM_LEGACY`: `-except` -> `-legacyexcept` - `WASM` (will be added later): X -> `-wasmexcept` - `SjLjLibrary` - `EMSCRIPTEN`: `` -> `` (no change) - `WASM_LEGACY`: `-wasm-sjlj` -> `-legacysjlj` - `WASM` (will be added later): X -> `-wasmsjlj` We give the current default mode (`EMSCRIPTEN`) no suffix. We hope we eventually change `WASM` to be the default, in which case we will give it no suffix and give `EMSCRIPTEN` a suffix like `-emexcept`/`-emsjlj`. Also I removed / didn't add a `-` within a single suffix, so it is `-legacyexcept` rather than `-legacy-except`. The reason is if a library inherits from multiple classes, it will have multiple `-`s in its file name like `libc++abi-debug-legacyexcept.a`, and I think it is clearer if `-` only acts like split points between different suffixes.
- Loading branch information
Showing
4 changed files
with
47 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters