about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-11-30 22:31:02 +0100
committerbptato <nincsnevem662@gmail.com>2023-11-30 22:31:02 +0100
commit90c74ddcab6713f9bb2dfea53a30951cc2e06f88 (patch)
tree087ae7836e86afdc78d86d2aa04042999d322983 /Makefile
parentd3a32a80fc8b6111d9e87f0f9eaa4254ef895868 (diff)
downloadchawan-90c74ddcab6713f9bb2dfea53a30951cc2e06f88.tar.gz
Makefile: fix $(FLAGS) not being used
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8f6f0089..ea6045c4 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ TARGET ?= release
 ifeq ($(TARGET),debug)
 FLAGS += --debugger:native
 else ifeq ($(TARGET),release)
-FLAGS += -d:strip, -d:lto
+FLAGS += -d:strip -d:lto
 else ifeq ($(TARGET),release0)
 FLAGS += -d:release --stacktrace:on
 else ifeq ($(TARGET),release1)
@@ -20,7 +20,8 @@ endif
 $(OUTDIR)/$(TARGET)/bin/cha: lib/libquickjs.a src/*.nim src/**/*.nim res/* res/**/*
 	@mkdir -p "$(OUTDIR)/$(TARGET)/bin"
 	$(NIMC) -d:curlLibName:$(CURLLIBNAME) -o:"$(OUTDIR)/$(TARGET)/bin/cha" \
-		--nimcache:"$(OBJDIR)/$(TARGET)" -d:$(TARGET) src/main.nim
+		--nimcache:"$(OBJDIR)/$(TARGET)" -d:$(TARGET) $(FLAGS) \
+		src/main.nim
 	ln -sf "$(OUTDIR)/$(TARGET)/bin/cha" cha
 
 CFLAGS = -g -Wall -O2 -DCONFIG_VERSION=\"$(shell cat lib/quickjs/VERSION)\" \