summaryrefslogtreecommitdiff
path: root/c/makefile
diff options
context:
space:
mode:
authorThomas Bracht Laumann Jespersen <t@laumann.xyz>2025-02-02 08:59:12 +0100
committerThomas Bracht Laumann Jespersen <t@laumann.xyz>2025-02-02 08:59:12 +0100
commitd8321c1947b644888f92795a75645d0c91a6a92d (patch)
tree058d5e9e66463b9b173e513c3244a4da93c0a28c /c/makefile
parent7b72404f5ec31a29aafa6faaf9c284487c819175 (diff)
c/lex: mostly functional lexerHEADmaster
Still need to parse numbers, but otherwise the lexer looks functional. It provides location information for each token (something the OCaml impl does not do).
Diffstat (limited to 'c/makefile')
-rw-r--r--c/makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/makefile b/c/makefile
index af85d9e..65977b2 100644
--- a/c/makefile
+++ b/c/makefile
@@ -4,8 +4,8 @@
OBJ = main.o panic.o lex.o token.o
CC = gcc
-CFLAGS = -std=c17 -g -fsanitize=address,undefined -Wall
-LDFLAGS = -std=c17 -g -fsanitize=address,undefined
+CFLAGS = -std=c17 -g3 -fsanitize=address,undefined -Wall -Wdouble-promotion -Wconversion -D_POSIX_C_SOURCE=200809L
+LDFLAGS = -std=c17 -g3 -fsanitize=address,undefined -D_POSIX_C_SOURCE=200809L
lc: $(OBJ)
$(CC) $(LDFLAGS) $(OBJ) -o $@