forked from emscripten-core/emscripten
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept -O4 and larger values, clamping to 3 and warning
GCC and clang accept huge -O* values like -O4 and -O20, silently clamping them to a sensible -O3. Some packages rely on this and specify -O20 as a default "REALLY FAST", such as libogg and libvorbis. For compatibility, accept the large values, clamp them to 3, and print a warning instead of throwing an exception and dying. Test case added. Fixes emscripten-core#1499 Fixes emscripten-core#264
- Loading branch information
Showing
2 changed files
with
15 additions
and
3 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