Skip to content

Commit 74be327

Browse files
committed
Fix Windows path issue of just
1 parent c3d6b1c commit 74be327

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

justfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Contributors : Nul None <[email protected]>
88
# |
99
# Created On : <2025-06-18>
10-
# Last Modified : <2025-06-18>
10+
# Last Modified : <2025-06-19>
1111
#
1212
# just (build)
1313
# just debug
@@ -63,6 +63,9 @@ CFLAGS_only_promp_for_dev := CFLAGS_base + ' ' + CFLAGS_debug + CFLAGS_static +
6363

6464
#=======================
6565

66+
BIN_xy := if os() == 'windows' {'xy.exe'} else {'./xy'}
67+
BIN_fw := if os() == 'windows' {'fw.exe'} else {'./fw'}
68+
#=======================
6669
alias b := build
6770
alias d := debug
6871
alias t := test
@@ -84,11 +87,11 @@ test: test-xy test-fw
8487

8588
test-xy:
8689
@{{CC}} test/xy.c {{CFLAGS}} -o xy
87-
@./xy
90+
@{{BIN_xy}}
8891

8992
test-fw:
9093
@{{CC}} test/fw.c {{CFLAGS}} -o fw
91-
@./fw
94+
@{{BIN_fw}}
9295

9396

9497
check: test

0 commit comments

Comments
 (0)