adonis0147 commented on PR #11400: URL: https://github.com/apache/doris/pull/11400#issuecomment-1202403760
@jacktengg @yiguolei #11444 introduces a way to change the default optimization level. The followings are the reasons why the default optimization level should be `-O0` or `-Og`: 1. For most users who want to build Doris from source, they can build it by `bash build.sh --be`. The build type of this command is `RELEASE` and the optimization level is `-O3`. All works fine as expect. 2. For most developers who develop Doris daily, `-O3` may harm the debugging experience. The standard edit-compile-debug cycle really matters which is the reason why `-Og` was introduced in `GCC`. 3. For other scenarios (workflows and etc.) , we can just modify the environment variables or deploy scripts to satisfy our requirement. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org