File: compiler_options.patch

package info (click to toggle)
libflorist 2009-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,728 kB
  • ctags: 276
  • sloc: ada: 11,681; ansic: 7,164; makefile: 194
file content (29 lines) | stat: -rw-r--r-- 1,014 bytes parent folder | download | duplicates (2)
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
Index: b/florist_build.gpr
===================================================================
--- a/florist_build.gpr
+++ b/florist_build.gpr
@@ -1,22 +1,8 @@
 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
+        ("-g", "-O2", "-gnatVa", "-gnatafno", "-gnatwa");
    end Compiler;
 
 end Florist_Build;