Skip to content

Commit c041fc1

Browse files
authored
WIP: nifmake tool that can be adapted for our purposes more easily (#1151)
1 parent 45d0b2f commit c041fc1

File tree

4 files changed

+753
-3
lines changed

4 files changed

+753
-3
lines changed

src/hastur.nim

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Hastur - Tester tool for Nimony and its related subsystems (NIFC etc).
2-
## (c) 2024 Andreas Rumpf
2+
## (c) 2024-2025 Andreas Rumpf
33

44
when defined(windows):
55
when defined(gcc):
@@ -17,12 +17,12 @@ const
1717
Version = "0.6"
1818
Usage = "hastur - tester tool for Nimony Version " & Version & """
1919
20-
(c) 2024 Andreas Rumpf
20+
(c) 2024-2025 Andreas Rumpf
2121
Usage:
2222
hastur [options] [command] [arguments]
2323
2424
Commands:
25-
build [all|nimony|nifler|hexer|nifc] build selected tools (default: all).
25+
build [all|nimony|nifler|hexer|nifc|nifmake] build selected tools (default: all).
2626
all run all tests (also the default action).
2727
nimony run Nimony tests.
2828
nifc run NIFC tests.
@@ -476,6 +476,11 @@ proc buildHexer(showProgress = false) =
476476
let exe = "hexer".addFileExt(ExeExt)
477477
robustMoveFile "src/hexer/" & exe, binDir() / exe
478478

479+
proc buildNifmake(showProgress = false) =
480+
exec "nim c src/nifmake/nifmake.nim", showProgress
481+
let exe = "nifmake".addFileExt(ExeExt)
482+
robustMoveFile "src/nifmake/" & exe, binDir() / exe
483+
479484
proc execNifc(cmd: string) =
480485
exec "nifc", cmd
481486

@@ -596,6 +601,7 @@ proc handleCmdLine =
596601
buildNimony(showProgress)
597602
buildNifc(showProgress)
598603
buildHexer(showProgress)
604+
buildNifmake(showProgress)
599605
of "nifler":
600606
buildNifler(showProgress)
601607
of "nimony":
@@ -605,6 +611,8 @@ proc handleCmdLine =
605611
buildNifc(showProgress)
606612
of "hexer":
607613
buildHexer(showProgress)
614+
of "nifmake":
615+
buildNifmake(showProgress)
608616
else:
609617
writeHelp()
610618
removeDir "nimcache"

0 commit comments

Comments
 (0)