aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-23 13:50:56 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-23 13:57:03 +0200
commite901e00ed67c3497c7f2ce4b348e69a7ccd75b8a (patch)
treeb71a7528e7a7ac10dc4ac1b9086e6accefe5815c
parent43c01994f48b1452f32c3e4269167634b23fb601 (diff)
downloadchawan-e901e00ed67c3497c7f2ce4b348e69a7ccd75b8a.tar.gz
Build quickjs with bignum enabled
BigInt is standard and widely available in browsers. We have no reason to exclude it. (BigFloat/BigDecimal are not, so we do not add them for now.)
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 35787bfe..9bd56b00 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ manprefix = /usr/local/share/man
manprefix1 = $(manprefix)/man1
manprefix5 = $(manprefix)/man5
QJSOBJ = $(OBJDIR)/quickjs
-CFLAGS = -g -Wall -O2 -DCONFIG_VERSION=\"$(shell cat lib/quickjs/VERSION)\"
+CFLAGS = -g -Wall -O2 -DCONFIG_VERSION=\"$(shell cat lib/quickjs/VERSION)\" -DCONFIG_BIGNUM=1
.PHONY: debug
debug: lib/libquickjs.a $(OBJDIR)/debug/
@@ -40,7 +40,8 @@ $(QJSOBJ)/%.o: lib/quickjs/%.c | $(QJSOBJ)/
$(CC) $(CFLAGS) -c -o $@ $<
lib/libquickjs.a: $(QJSOBJ)/quickjs.o $(QJSOBJ)/libregexp.o \
- $(QJSOBJ)/libunicode.o $(QJSOBJ)/cutils.o | $(QJSOBJ)/
+ $(QJSOBJ)/libunicode.o $(QJSOBJ)/cutils.o \
+ $(QJSOBJ)/libbf.o | $(QJSOBJ)/
$(AR) rcs $@ $^
.PHONY: clean