ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since c1c1112 was
6643e72,
checked in by Thierry Delisle <tdelisle@…>, 8 years ago
|
first basic test for garbage collector now compiles and works
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | #!lua |
---|
2 | |
---|
3 | -- Additional Linux libs: "X11", "Xxf86vm", "Xi", "Xrandr", "stdc++" |
---|
4 | |
---|
5 | includeDirList = { |
---|
6 | "src/", |
---|
7 | "../", |
---|
8 | "containers/" |
---|
9 | } |
---|
10 | |
---|
11 | libDirectories = { |
---|
12 | |
---|
13 | } |
---|
14 | |
---|
15 | |
---|
16 | if os.get() == "linux" then |
---|
17 | linkLibs = { |
---|
18 | |
---|
19 | } |
---|
20 | end |
---|
21 | |
---|
22 | -- Build Options: |
---|
23 | buildOptions = { |
---|
24 | "-g", |
---|
25 | "-DTEST_FILE=${test}", |
---|
26 | "\n test = gctest", |
---|
27 | "\n CC = cfa\n CXX = cfa", } |
---|
28 | |
---|
29 | solution "GC-no-RAII" |
---|
30 | configurations { "debug", "release", |
---|
31 | "cproc-debug", "cproc-release", |
---|
32 | "cfa-debug", "cfa-release" } |
---|
33 | |
---|
34 | project "gc-test" |
---|
35 | kind "ConsoleApp" |
---|
36 | language "C" |
---|
37 | location "build" |
---|
38 | objdir "build" |
---|
39 | targetdir "." |
---|
40 | buildoptions (buildOptions) |
---|
41 | defines { "bool=_Bool", |
---|
42 | "\"true=((_Bool)(const signed int)1)\"", |
---|
43 | "\"false=((_Bool)(const signed int)0)\"", |
---|
44 | "_GNU_SOURCE", |
---|
45 | "__cforall" |
---|
46 | } |
---|
47 | libdirs (libDirectories) |
---|
48 | links (linkLibs) |
---|
49 | linkoptions (linkOptionList) |
---|
50 | includedirs (includeDirList) |
---|
51 | files { "src/**.c", "containers/**.c" } |
---|
52 | |
---|
53 | configuration "debug" |
---|
54 | defines { "DEBUG" } |
---|
55 | flags { "Symbols" } |
---|
56 | |
---|
57 | configuration "release" |
---|
58 | defines { "NDEBUG" } |
---|
59 | flags { "Optimize" } |
---|
60 | |
---|
61 | configuration "cproc-debug" |
---|
62 | buildoptions ({"-E"}) |
---|
63 | linkoptions ({"-E"}) |
---|
64 | defines { "DEBUG" } |
---|
65 | flags { "Symbols" } |
---|
66 | |
---|
67 | configuration "cproc-release" |
---|
68 | buildoptions ({"-E"}) |
---|
69 | linkoptions ({"-E"}) |
---|
70 | defines { "DEBUG" } |
---|
71 | flags { "Symbols" } |
---|
72 | |
---|
73 | configuration "cfa-debug" |
---|
74 | linkoptions ({"-E"}) |
---|
75 | files { "build/cproc-debug/*.o" } |
---|
76 | defines { "DEBUG" } |
---|
77 | flags { "Symbols" } |
---|
78 | |
---|
79 | configuration "cfa-release" |
---|
80 | linkoptions ({"-E"}) |
---|
81 | files { "build/cproc-debug/*.o" } |
---|
82 | defines { "DEBUG" } |
---|
83 | flags { "Symbols" } |
---|
Note: See
TracBrowser
for help on using the repository browser.