-
Notifications
You must be signed in to change notification settings - Fork 1
/
oto.gpr
35 lines (27 loc) · 1015 Bytes
/
oto.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
project Oto is
Version := "0.2";
Name := "oto";
for Languages use ("Ada");
for Source_Dirs use ("src");
for Object_Dir use "obj";
for Exec_Dir use ".";
for Library_Name use Name;
for Library_Dir use "lib";
for Library_Kind use "dynamic";
for Library_Version use "lib" & Name & ".so." & Version;
package Compiler is
CPU := external ("CPU", "-march=native -fPIC");
OPT := ("-O3", "-fomit-frame-pointer");
WARN := ("-Wall");
STYLE := ("-gnaty2aAbdefhiklM80nOprSux");
Ada_Switches :=
( "-gnat12", "-gnata", "-gnato", "-fstack-check", "-gnatW8",
"-gnateE", "-gnatU", "-gnatf", "-gnatj80"
);
for Default_Switches ("Ada") use Ada_Switches & CPU & OPT & WARN & STYLE;
C_Switches := ("-O3", "-C99", "-fstack-check", "-fsanitize=undefined");
for Default_Switches ("C") use C_Switches & CPU & OPT & WARN;
Fortran_Switches := ();
for Default_Switches ("Fortran") use Fortran_Switches & CPU & OPT & WARN;
end Compiler;
end Oto;