diff options
| author | bptato <nincsnevem662@gmail.com> | 2023-09-23 13:50:56 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2023-09-23 13:57:03 +0200 |
| commit | e901e00ed67c3497c7f2ce4b348e69a7ccd75b8a (patch) | |
| tree | b71a7528e7a7ac10dc4ac1b9086e6accefe5815c | |
| parent | 43c01994f48b1452f32c3e4269167634b23fb601 (diff) | |
| download | chawan-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-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |