-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.gpr
40 lines (31 loc) · 1.27 KB
/
common.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
Project Common is
for Source_Dirs use ();
for Exec_dir use "bin";
for Object_Dir use "obj";
package Compiler is
for Default_Switches ("Ada") use ("-O3","-gnatwA","-gnat2012");
-- for Switches ("foo.adb") use Compiler'Default_Switches ("Ada") & ("-O1");
-- for Switches ("bah.adb") use Compiler'Default_Switches ("Ada") &
-- (
-- "-gnatqQ", -- keep ALI files even if there are compilation errors
-- "-gnat12" -- force Ada 2012
-- "-gnatef" -- print full file names in errors
-- );
end Compiler;
package Builder is
for Default_Switches ("Ada") use ();
end Builder;
package Binder is
for Default_Switches ("ada") use ("-E","-shared");
end Binder;
package Linker is
for Default_Switches ("ada") use ("-dead_strip", "-no-pie"); -- macOS
-- for Default_Switches ("ada") use ("-dead_strip", "-Wl,-no_pie"); -- Intel
-- for Linker_Options use ("-lblah"); -- link with these libraries
end Linker;
-- run this in the directory that contains build.gpr:
-- gnatpp -P build.gpr"
package Pretty_Printer is
for Default_Switches ("ada") use ("--max-line-length=128","--par_threshold=2","--output-dir=pretty");
end Pretty_Printer;
end Common;