Files
xmlada/shared.gpr
Emmanuel Briot 59a70bf690 Remove -s switch for the builder, which is buggy and forces a recompilation
of the whole system every time


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/importfromcvs/trunk@11623 936e1b1b-40f2-da11-902a-00137254ae57
2002-10-18 08:24:18 +00:00

55 lines
1.4 KiB
Plaintext

project Shared is
Version := "0.8";
for Source_Dirs use ();
type Mode_Type is ("distrib", "debug", "optimize", "profile");
Mode : Mode_Type := external ("MODE", "optimize");
package Builder is
case Mode is
when "debug" =>
for Default_Switches ("Ada") use ("-g");
when others =>
for Default_Switches ("Ada") use ("-O2");
end case;
end Builder;
package compiler is
warnings := ("-gnatwua", "-gnaty");
case Mode is
when "distrib" =>
for Default_Switches ("Ada") use ("-O2", "-gnatN");
when "debug" =>
for Default_Switches ("Ada") use warnings
& ("-gnata", "-gnatVaMI");
when "optimize" =>
for Default_Switches ("Ada") use warnings
& ("-O2", "-gnatN", "-gnatp");
when "profile" =>
for Default_Switches ("Ada") use warnings & ("-pg");
end case;
end compiler;
package binder is
case Mode is
when "debug" =>
for Default_Switches ("Ada") use ("-E");
end case;
end binder;
package linker is
case Mode is
when "profile" =>
for Default_Switches ("Ada") use ("-pg");
when "distrib" =>
for Default_Switches ("Ada") use ("-s");
end case;
end linker;
end Shared;