Add a SPARK Main template

This commit is contained in:
Nicolas Setton
2018-06-01 16:15:24 -04:00
parent 5c8de067a8
commit 41d10cff79
4 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
name: SPARK Main
description: Simple overrideable provable main
main: main

View File

@@ -0,0 +1,4 @@
procedure Main is
begin
null;
end Main;

View File

@@ -0,0 +1,6 @@
pragma Profile(GNAT_Extended_Ravenscar);
pragma Partition_Elaboration_Policy(Sequential);
pragma SPARK_Mode (On);
pragma Warnings (Off, "no Global contract available");
pragma Warnings (Off, "subprogram * has no effect");

View File

@@ -0,0 +1,15 @@
project Main is
for Main use ("main.adb");
package Compiler is
for Switches ("ada") use ("-g", "-gnatwa", "-gnatQ");
end Compiler;
package Builder is
for Switches ("ada") use ("-g", "-O0");
for Global_Configuration_Pragmas use "main.adc";
end Builder;
end Main;