Closed maxime-esa closed 4 years ago
Is there any way to avoid the -specs options and have all options in the command line?
Yes, you should be able to inhibit it by setting Compiler'Max_Command_Line_Length attribute to a generous value:
package Compiler is
for Max_Command_Line_Length use "131072";
end Compiler;
OK, thanks for the tip!
On my system I am using ccache (https://ccache.dev) to speed-up the recompilation of files.
This seems not compatible with gprbuild. Using
strace
on the invocation of gprbuild shows thatccache
is called but it does not find any cached files:I am suspecting the the issue comes from the "-specs=/tmp/GNAT-TEMP-random-number.TMP' since it is different at each call. As I understand it,
ccache
works by caching the complete command line to gcc - if there is a difference it will recompile the file.Is there any way to avoid the -specs options and have all options in the command line? ..Alternatively to use a deterministic specs file name that would be the same whenever compiling the same file?
Thanks