This repository was archived by the owner on Aug 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasalt.gpr
More file actions
48 lines (40 loc) · 1.28 KB
/
basalt.gpr
File metadata and controls
48 lines (40 loc) · 1.28 KB
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
with "basalt_switches.gpr";
library project Basalt is
type Library_Type is ("dynamic", "static");
type Build_Type is ("default", "test");
Kind : Library_Type := external ("KIND", "dynamic");
Build : Build_Type := external ("BUILD", "default");
for Create_Missing_Dirs use "True";
for Source_Dirs use ("src");
for Languages use ("Ada");
for Object_Dir use "obj";
for Library_Name use "basalt";
for Library_Dir use "lib";
for Library_Kind use Kind;
package Builder is
case Build is
when "default" =>
for Global_Configuration_Pragmas use "restrictions.adc";
when "test" =>
for Global_Configuration_Pragmas use "test_restrictions.adc";
end case;
end Builder;
package Compiler is
case Kind is
when "dynamic" =>
for Default_Switches ("Ada") use Basalt_Switches.Compiler_Switches;
when "static" =>
for Default_Switches ("Ada") use ("-fPIC") & Basalt_Switches.Compiler_Switches;
end case;
end Compiler;
package Prove is
for Proof_Switches ("Ada") use (
"-j0",
"--prover=z3,cvc4",
"--steps=2000",
"--memlimit=1000",
"--checks-as-errors",
"--warnings=error"
);
end Prove;
end Basalt;