Commit ffef1219 by Laurent GUERBY Committed by Laurent Guerby

re PR ada/38874 (gnatmake doesn't pass through --param options)

2009-05-04   Laurent GUERBY  <laurent@guerby.net>

	PR ada/38874
	* make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.

From-SVN: r147102
parent c3ba8d32
2009-05-04 Laurent GUERBY <laurent@guerby.net>
PR ada/38874
* make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
2009-04-29 Ed Schonberg <schonberg@adacore.com> 2009-04-29 Ed Schonberg <schonberg@adacore.com>
* sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
......
...@@ -7778,6 +7778,12 @@ package body Make is ...@@ -7778,6 +7778,12 @@ package body Make is
end; end;
end if; end if;
elsif Argv'Length >= 8 and then
Argv (1 .. 8) = "--param="
then
Add_Switch (Argv, Compiler, And_Save => And_Save);
Add_Switch (Argv, Linker, And_Save => And_Save);
else else
Scan_Make_Switches (Argv, Success); Scan_Make_Switches (Argv, Success);
end if; end if;
...@@ -7792,6 +7798,7 @@ package body Make is ...@@ -7792,6 +7798,7 @@ package body Make is
elsif (Argv'Length > 5 and then Argv (1 .. 5) = "-RTS=") elsif (Argv'Length > 5 and then Argv (1 .. 5) = "-RTS=")
or else (Argv'Length > 5 and then Argv (1 .. 5) = "-GCC=") or else (Argv'Length > 5 and then Argv (1 .. 5) = "-GCC=")
or else (Argv'Length > 8 and then Argv (1 .. 7) = "-param=")
or else (Argv'Length > 10 and then Argv (1 .. 10) = "-GNATLINK=") or else (Argv'Length > 10 and then Argv (1 .. 10) = "-GNATLINK=")
or else (Argv'Length > 10 and then Argv (1 .. 10) = "-GNATBIND=") or else (Argv'Length > 10 and then Argv (1 .. 10) = "-GNATBIND=")
then then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment