3.1.8 Incompatibilities with gnatmake
Here is a list of incompatibilities between gnatmake invoked with a
project file and gprbuild:
- gprbuild never recompiles the runtime sources.
- gnatmake switches that are not recognized by gprbuild:
- - -a (Consider all files, even readonly ali files)
- - -M (List object file dependences for Makefile)
- - -n (Check objects up to date, output next file to compile if not)
- - -x (Allow compilation of needed units external to the projects)
- - -z No main subprogram (zero main)
- - –GCC=command
- - –GNATBIND=command
- - –GNATLINK=command
- - -aLdir (Skip missing library sources if ali in dir)
- - -Adir (like -aLdir -aIdir)
- - -aOdir (Specify library/object files search path)
- - -aIdir (Specify source files search path)
- - -Idir (Like -aIdir -aOdir)
- - -I- (Don’t look for sources & library files in the default directory)
- - -Ldir (Look for program libraries also in dir)
- The switches that are not directly recognized by gprbuild and passed to
the Ada compiler are only:
- - -nostdlib
- - -nostdinc
- - -fstack-check
- - -fno-inline
- - -Oxxx (any switch starting with -O)
- - -gxxx (any switch starting with -g)