-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnimTodo.nimble
31 lines (22 loc) · 1.36 KB
/
nimTodo.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Package
version = "0.16.0"
author = "David Krause (enthus1ast)"
description = "a small, fast, cli todo organizer, written in Nim"
license = "MIT"
srcDir = "src"
bin = @["nimTodo"]
# Dependencies
requires "nim >= 2.0.0"
requires "cligen" # for commandline cli
requires "sim" # for config parsing
task buildRelease, "builds a release build":
exec "nim c -d:release -d:danger --opt:speed -d:lto --passl:-s src/nimTodo.nim"
task buildReleaseNative, "builds a release build":
exec "nim c -d:release -d:danger --opt:speed -d:lto --passl:-s --passc:-march=native src/nimTodo.nim"
task buildReleaseNativeClang, "builds a release build":
# exec "nim c --cc:clang -d:release -d:danger --opt:speed -d:lto --passl:-s --passc:-march=native --out:src/nimTodo.clang src/nimTodo.nim"
exec "nim c --cc:clang -d:release -d:danger --opt:speed -d:lto --passl:-s --passc:-march=native --out:src/nimTodo src/nimTodo.nim"
task buildReleaseNativeDebugger, "builds a release build, but with debugger native":
# exec "nim c -d:release -d:danger --opt:speed -d:lto --passl:-s --passc:-march=native --debugger:native --passL:\"-no-pie\" src/nimTodo.nim"
exec "nim c -d:release -d:danger --opt:speed -d:lto --passc:-march=native --debugger:native --passL:\"-no-pie\" src/nimTodo.nim"
# exec "nim c -d:danger --debugger:native --passL:\"-no-pie\" src/nimTodo.nim"