-
Notifications
You must be signed in to change notification settings - Fork 9
/
cppstl.nimble
35 lines (27 loc) · 1.08 KB
/
cppstl.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
32
33
34
35
# Package
version = "0.7.0"
author = "Clonkk"
description = "Bindings for the C++ Standard Template Library (STL)"
license = "MIT"
# Dependencies
requires "nim >= 2.0.0"
backend = "cpp"
task gendoc, "gen doc":
exec("nimble doc --backend:cpp --project cppstl.nim --out:docs/")
task test, "Run the tests":
# run the manually to change the compilation flags
exec "nim cpp -r tests/destroy_bug_15.nim"
exec "nim cpp -r --gc:arc tests/destroy_bug_15.nim"
exec "nim cpp -r tests/tvector.nim"
exec "nim cpp -r --gc:arc tests/tvector.nim"
exec "nim cpp -r tests/tstring.nim"
exec "nim cpp -r --gc:arc tests/tstring.nim"
exec "nim cpp -r tests/tcomplex.nim"
exec "nim cpp -r --gc:arc tests/tcomplex.nim"
exec "nim cpp -r tests/tpair.nim"
exec "nim cpp -r --gc:arc tests/tpair.nim"
exec "nim cpp -r tests/tsmart_ptrs.nim"
exec "nim cpp -r --gc:arc tests/tsmart_ptrs.nim"
# the following should compile and *not* produce a codegen error
exec "nim cpp --gc:arc -r tests/tdestructor_codegen_bug.nim"
exec "nim cpp -r tests/tdestructor_codegen_bug.nim"