Skip to content

Commit

Permalink
use JCLAGS in gc
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Jun 7, 2024
1 parent 0dfdf52 commit 4c8caac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ JULIASUPPORT := $(abspath $(JULIAHOME)/src/support)
BUILDDIR := .
# Get the name of the parent of BUILDDIR since there will be a few automatically generated files there
SRCBUILDDIR := $(abspath $(BUILDDIR)/..)

include $(JULIAHOME)/Make.inc

JCFLAGS += $(CFLAGS)
Expand Down Expand Up @@ -32,9 +33,9 @@ $(BUILDDIR):
mkdir -p $(BUILDDIR)

$(BUILDDIR)/%.o: $(SRCDIR)/%.c $(HEADERS) | $(BUILDDIR)
@$(call PRINT_CC, $(CC) $(JCPPFLAGS) $(SHIPFLAGS) $(DISABLE_ASSERTIONS) -c $< -o $@)
@$(call PRINT_CC, $(CC) $(JCFLAGS) $(SHIPFLAGS) $(DISABLE_ASSERTIONS) -c $< -o $@)
$(BUILDDIR)/%.dbg.obj: $(SRCDIR)/%.c $(HEADERS) | $(BUILDDIR)
@$(call PRINT_CC, $(CC) $(JCPPFLAGS) $(DEBUGFLAGS) -c $< -o $@)
@$(call PRINT_CC, $(CC) $(JCFLAGS) $(DEBUGFLAGS) -c $< -o $@)

release: $(BUILDDIR)/libgc.a
debug: $(BUILDDIR)/libgc-debug.a
Expand Down

0 comments on commit 4c8caac

Please sign in to comment.