The '-Og' is a better choice than '-O0' for producing debuggable code because some compiler passes that collect debug information are disabled at '-O0'.
Wszystkie etapy powiodły się
The build was successful.
Wszystkie etapy powiodły się
The build was successful.
This commit is contained in:
rodzic
8985044054
commit
ace4d56d7f
2
Makefile
2
Makefile
@ -2,7 +2,7 @@
|
||||
CFLAGS = -std=c99 -D_GNU_SOURCE -fPIC -Iinclude -I. -Wunused -Wall -Wextra -Wpedantic
|
||||
|
||||
# Additional CFLAGS for debug build
|
||||
DCFLAGS = -O0 -g3
|
||||
DCFLAGS = -Og -g3
|
||||
|
||||
# Addditional CFLAGS for release build
|
||||
RCFLAGS = -O3 -s
|
||||
|
Ładowanie…
Reference in New Issue
Block a user