gaowayne opened a new issue, #1919: URL: https://github.com/apache/incubator-brpc/issues/1919
**Describe the bug (描述bug)** g++ still use the O2, not O0 to build code. to fully debug code, we need O0. **To Reproduce (复现方法)** I change the Cmakefilelist.txt, in one place add O2, but still there is one option O2, I need change it to O0 ``` g++ -c -I./src -I/usr/include/ -DBRPC_WITH_GLOG=0 -DGFLAGS_NS=google -D__const__=__unused__ -g -O0 -DBTHREAD_USE_FAST_PTHREAD_MUTEX -D_GNU_SOURCE -DUSE_SYMBOLIZE -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -DBRPC_REVISION=\"1.2.0\|master\|6457ad74\|2022-08-31T15:35:24+02:00\" -O2 -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-invalid-offsetof -Wno-unused-parameter -fno-omit-frame-pointer -std=c++0x -Wno-aligned-new src/brpc/policy/discovery_naming_service.cpp -o src/brpc/policy/discovery_naming_service.o ``` **Expected behavior (期望行为)** we can use build with -O0 **Versions (各种版本)** OS:Ubuntu Compiler:g++ brpc: protobuf: **Additional context/screenshots (更多上下文/截图)** -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
