aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-04-25 20:31:46 +0200
committerbptato <nincsnevem662@gmail.com>2024-04-25 20:39:01 +0200
commita42f96ee6287c714ce90206009f20494995940db (patch)
treea7d76007e2360c84c0b309d8aa934c186851dbe6 /Makefile
parent91707a9b2ee3ceee6bdd13f5262dcc1dd675fbc7 (diff)
downloadchawan-a42f96ee6287c714ce90206009f20494995940db.tar.gz
data: replace std/base64 with atob
std's version is known to be broken on versions we still support, and it makes no sense to use different decoders anyway. (This does introduce a bit of a dependency hell, because js/base64 depends on js/javascript which tries to bring in the entire QuickJS runtime. So we move that out into twtstr, and manually convert a Result[string, string] to DOMException in js/base64.)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6a58edd7..fd8ac6c2 100644
--- a/Makefile
+++ b/Makefile
@@ -142,7 +142,9 @@ $(OUTDIR_CGI_BIN)/about: adapter/protocol/about.nim res/chawan.html \
@mkdir -p "$(OUTDIR_CGI_BIN)"
$(NIMC) $(FLAGS) --nimcache:"$(OBJDIR)/$(TARGET)/about" -o:"$(OUTDIR_CGI_BIN)/about" adapter/protocol/about.nim
-$(OUTDIR_CGI_BIN)/data: adapter/protocol/data.nim src/utils/twtstr.nim
+$(OUTDIR_CGI_BIN)/data: adapter/protocol/data.nim src/utils/twtstr.nim \
+ src/types/opt.nim src/utils/map.nim src/utils/charcategory.nim \
+ src/loader/connecterror.nim
@mkdir -p "$(OUTDIR_CGI_BIN)"
$(NIMC) $(FLAGS) --nimcache:"$(OBJDIR)/$(TARGET)/data" -o:"$(OUTDIR_CGI_BIN)/data" adapter/protocol/data.nim