aboutsummaryrefslogtreecommitdiffhomepage
path: root/justfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-04 23:05:50 +0900
committernsfisis <nsfisis@gmail.com>2025-05-04 23:05:50 +0900
commitdad74f4d1e786f7dcfcc4b1bc93928b959aaa287 (patch)
tree37a45570467de5652acab4e97ad8be527e196dc7 /justfile
parent1cc373ebe04686d1b577f1b95859e2858f4a6663 (diff)
downloadP4Dcc-dad74f4d1e786f7dcfcc4b1bc93928b959aaa287.tar.gz
P4Dcc-dad74f4d1e786f7dcfcc4b1bc93928b959aaa287.tar.zst
P4Dcc-dad74f4d1e786f7dcfcc4b1bc93928b959aaa287.zip
add tests for 2nd gen compiler
Diffstat (limited to 'justfile')
-rw-r--r--justfile12
1 files changed, 10 insertions, 2 deletions
diff --git a/justfile b/justfile
index fc5249f..9020638 100644
--- a/justfile
+++ b/justfile
@@ -5,7 +5,15 @@ all: build
build:
gcc -g -O0 -o p4dcc main.c {{CFLAGS}}
-test TESTCASE="all": build
+build2: build
+ ./p4dcc < main.c > main.s
+ gcc -Wl,-z,noexecstack -o p4dcc2 main.s
+
+build3: build2
+ ./p4dcc2 < main.c > main.s
+ gcc -Wl,-z,noexecstack -o p4cc3 main.s
+
+test TESTCASE="all" $BIN="p4dcc": build
#!/usr/bin/env bash
if [[ {{TESTCASE}} = all ]]; then
bash tests/all.sh
@@ -14,5 +22,5 @@ test TESTCASE="all": build
fi
clean:
- rm p4dcc
+ rm p4dcc*
rm -rf tests/tmp