File: compiler_options.patch

package info (click to toggle)
libflorist 2014-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,996 kB
  • ctags: 304
  • sloc: ada: 11,705; ansic: 7,195; makefile: 154; sh: 19
file content (30 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download
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
Description: adapt build project for Debian
Author: Ludovic Brenta <lbrenta@debian.org>
Forwarded: not-needed

--- a/florist_build.gpr
+++ b/florist_build.gpr
@@ -1,22 +1,7 @@
 project Florist_Build is
 
-   type Build_Type is ("Debug", "Production");
-   Build : Build_Type := External ("Build", "Production");
-
    package Compiler is
-      GNAT_Flags := ("-O2", "-gnatpg");
-
-      for Switches ("posix-signals.adb") use GNAT_Flags;
-      for Switches ("posix-implementation.adb") use GNAT_Flags;
-      for Switches ("posix-supplement_to_ada_io.adb") use GNAT_Flags;
-      for Switches ("posix-unsafe_process_primitives.adb") use GNAT_Flags;
-
-      case Build is
-         when "Debug" =>
-            for Default_Switches ("Ada") use ("-O2", "-gnatwae", "-gnatyg");
-         when "Production" =>
-            for Default_Switches ("Ada") use ("-O2", "-gnatp");
-      end case;
+      for Default_Switches ("Ada") use External_As_List ("ADAFLAGS", " ");
    end Compiler;
 
 end Florist_Build;