Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r222930 - Generate a compile error if release is built without …
…compiler optimizations https://bugs.webkit.org/show_bug.cgi?id=177665 Reviewed by Brian Burg. .: Default to RelWithDebInfo if CMAKE_BUILD_TYPE is unset. * CMakeLists.txt: Source/JavaScriptCore: Pass -DRELEASE_WITHOUT_OPTIMIZATIONS to testair.cpp and testb3.cpp because this files are compiled with -O0 for build speed reasons after r195639. * JavaScriptCore.xcodeproj/project.pbxproj: Source/WTF: For GCC and Clang, generate an error at build time that will alert the developer that she is trying to build Release without any compiler optimization. A build time error is much better than an unexpected "oh, WebKit is really slow ..." situation later. If this was intended, then we tell the developer that she can continue by just setting -DRELEASE_WITHOUT_OPTIMIZATIONS in the list of build flags. The intention of this patch is to ensure that nobody builds Release without enabling compiler optimization by mistake. * wtf/Compiler.h:
- Loading branch information
1 parent
57a7810
commit c7604b8
Showing
6 changed files
with
61 additions
and
2 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
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