The '-Og' is a better choice than '-O0' for producing debuggable code because some compiler passes that collect debug information are disabled at '-O0'.
Todas las comprobaciones han sido exitosas
The build was successful.
Todas las comprobaciones han sido exitosas
The build was successful.
Este commit está contenido en:
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
|
||||
|
||||
Referencia en una nueva incidencia
Block a user