This repository has been archived by the owner on Mar 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
emulatorkit.gpr
52 lines (35 loc) · 1.49 KB
/
emulatorkit.gpr
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
project EmulatorKit is
for Source_Dirs use ("src");
for Object_Dir use "obj";
for Main use ("main.adb");
type Build_Mode_Type is
("Test_Coverage", "Optimized_With_Checks");
Build_Mode : Build_Mode_Type := external ("Build_Mode", "Optimized_With_Checks");
package Compiler is
case Build_Mode is
when "Test_Coverage" =>
for Default_Switches ("ada") use ("-gnatwea.w.s.k.fhl", "-gnatVa", "-gnatytIkxuSrpOnlihfeBbAa", "-g", "-fstack-check", "-gnat12", "-gnato", "-gnata", "-gnatf", "-ftest-coverage", "-fprofile-arcs");
when "Optimized_With_Checks" =>
for Default_Switches ("ada") use ("-gnatwea.w.s.k.fhl", "-gnatVa", "-gnatytIkxuSrpOnlihfeBbAa", "-g", "-fstack-check", "-gnat12", "-gnato", "-gnata", "-O3", "-gnatn", "-funroll-loops", "-gnatf");
end case;
end Compiler;
package Builder is
for Default_Switches ("ada") use ("-s", "-g", "-k", "-j4");
end Builder;
package Linker is
case Build_Mode is
when "Test_Coverage" =>
for Default_Switches ("ada") use ("-g", "-fprofile-generate");
when "Optimized_With_Checks" =>
for Default_Switches ("ada") use ("-g");
end case;
end Linker;
package Binder is
case Build_Mode is
when "Test_Coverage" =>
for Default_Switches ("ada") use ("-E");
when "Optimized_With_Checks" =>
for Default_Switches ("ada") use ("-E");
end case;
end Binder;
end EmulatorKit;