Skip to content

Commit

Permalink
Fix DEBUG=1 builds
Browse files Browse the repository at this point in the history
Without this fix, I get the following error:

CC gccollect.c
gccollect.c: In function ‘gc_helper_get_regs’:
gccollect.c:63:1: error: bp cannot be used in asm here
  • Loading branch information
dhylands committed May 26, 2014
1 parent 0405b22 commit 6e76f7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions unix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ SRC_C = \
modos.c \
$(SRC_MOD)

# Without -fomit-frame-pointer, DEBUG builds fail since the code tries
# to manipulate the frame pointer register
$(BUILD)/gccollect.o: CFLAGS += -fomit-frame-pointer

ifeq ($(UNAME_S),Darwin)
# Must be the last file in list of sources
SRC_C += seg_helpers.c
Expand Down

0 comments on commit 6e76f7b

Please sign in to comment.