diff options
author | bptato <nincsnevem662@gmail.com> | 2023-11-30 22:31:02 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-11-30 22:31:02 +0100 |
commit | 90c74ddcab6713f9bb2dfea53a30951cc2e06f88 (patch) | |
tree | 087ae7836e86afdc78d86d2aa04042999d322983 /Makefile | |
parent | d3a32a80fc8b6111d9e87f0f9eaa4254ef895868 (diff) | |
download | chawan-90c74ddcab6713f9bb2dfea53a30951cc2e06f88.tar.gz |
Makefile: fix $(FLAGS) not being used
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
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)\" \ |