diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-05 08:31:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-05 08:31:40 +0900 |
| commit | a2f66a04c52a491fe476e2eafb48cc412c848567 (patch) | |
| tree | cbafa1dbbbe4ca99b1762104a033a7a7b997f3dd /justfile | |
| parent | 6a23498962a69238ac142c3151357fb3730bfa9f (diff) | |
| download | P4Dcc-a2f66a04c52a491fe476e2eafb48cc412c848567.tar.gz P4Dcc-a2f66a04c52a491fe476e2eafb48cc412c848567.tar.zst P4Dcc-a2f66a04c52a491fe476e2eafb48cc412c848567.zip | |
fix justfile
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -7,7 +7,12 @@ build N="1": if [[ {{N}} = 1 ]]; then gcc -g -O0 -o p4dcc main.c {{CFLAGS}} else - ./p4dcc < main.c > main{{N}}.s + if [[ {{N}} = 2 ]]; then + prev="" + else + prev=$(({{N}} - 1)) + fi + "./p4dcc${prev}" < main.c > main{{N}}.s gcc -s -Wl,-z,noexecstack -o p4dcc{{N}} main{{N}}.s fi |
