Browse Source

The '-Og' is a better choice than '-O0' for producing debuggable code because some compiler passes that collect debug information are disabled at '-O0'.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
ace4d56d7f
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Makefile

+ 1
- 1
Makefile View File

@ -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


Loading…
Cancel
Save