Skip to content

Commit

Permalink
Disable link-time optimization for debug builds (#1418)
Browse files Browse the repository at this point in the history
For some reason, on macOS, debug symbols do not seem to be available for
lldb if link-time optimization is enabled. I do not know exactly why
that's the case, but it seems safe and without downsides to just disable
LTO if we're doing a debug build.

Co-authored-by: jcm <butt@butts.com>
  • Loading branch information
jcm93 and jcm committed Mar 12, 2024
1 parent 827babc commit f0fd88f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nall/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ endif
# build optimization levels
ifeq ($(build),debug)
symbols = true
lto = false
ifeq ($(cl),true)
flags += -Od
else
Expand Down

0 comments on commit f0fd88f

Please sign in to comment.