Skip to content

Commit

Permalink
add flag to compile nova 32 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
neroist committed Mar 14, 2024
1 parent 0c20794 commit f792da6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
9 changes: 8 additions & 1 deletion nim.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@
--spellSuggest
--styleCheck:hint

# -d:puppyLibcurl
@if nova32:
--cpu:i386
--passC:"-m32"
--passL:"-m32"

--out:"bin/nova32"
@end

-d:release
15 changes: 13 additions & 2 deletions nova.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,21 @@ task docs, "Build Nova documentation":
selfExec "r book init"
selfExec "r book build"

task nova, "Build Nova":
selfExec "c -f src/nova"
task nova, "Build Nova; -d:nova32 for 32 bit version":
when defined(nova32):
echo "\nBuilding 32 bit version\n"

selfExec "c -f -d:nova32 src/nova"
exec "strip bin/nova"
else:
echo "\nBuilding 64 bit version\n"

selfExec "c -f src/nova"
exec "strip bin/nova"


# Dependencies

requires "https://github.com/neroist/nim-termui#head"

requires "nim >= 1.6.8"
Expand Down

0 comments on commit f792da6

Please sign in to comment.