Also fix the linker driver on VxWorks that is defined twice (with an
obsolete definition in linker.xml).
Change-Id: I6bb386a9d03aaddbe09d9d3a963166dc95656d9b
TN: R806-039
Add support for a generic 'llvm' target, for Ada, C, C++ to allow building
with GNAT LLVM and bootstrapping GNAT LLVM via clang/clang++ for the C and
C++ files.
Fix support for clang along the way: cannot share latest updates to use
cc1/cc1plus spec files.
Change-Id: I28db3a23d67dabf80a71f8c01a4599e37a1367e3
Treat compiler name from configuration node as a regular
expression. If regexp is illegal, do not stop processing
the KB, instead skip corresponding <configuration> node
with a warning message.
Change-Id: Ie4c61a4023dc633e39928ceb3a3a1828d02429d7
A new configuration attribute Include_Switches_Via_Spec is added
and used to specify how included directories are specified to the
C or C++ compiler, so that the length of the command line is not
two long for the underlying compilers (cc1 and cc1plus).
Some code clean-up and refactoring.
For QC20-038.
Change-Id: I82e92bf66e964aacc7fb42f216c0475b543ef2d2
A new configuration attribute Include_Switches_Via_Spec is added
and used to specify how included directories are specified to the
C or C++ compiler, so that the length of the command line is not
two long for the underlying compilers (cc1 and cc1plus).
Some code clean-up and refactoring.
For QC20-038.
Change-Id: I5c2ff1e1d212b37fcfc21c5be9307f5fd073ea00
A new configuration attribute Include_Switches_Via_Spec is added
and used to specify how included directories are specified to the
C or C++ compiler, so that the length of the command line is not
two long for the underlying compilers (cc1 and cc1plus).
Change-Id: I9ce586e9b2fd3bef28ceef48979900a501f87409
Refactor the knowledge base to ensure that default naming schemes
for known compiled languages are always defined, even if a compiler
isn't found.
Change-Id: I235f87bcf0c0bd68a9b18a695b67bc3e2f943e2d
Object artifacts created when the binder generated sources
are compiled are now cleaned by gprclean.
In addition, ".su" is added as a new object artifact extension.
Change-Id: I701d34d3a90e7f563cbb00608778ab2bf380bb4b
WRS gcc -v or -dumpmachine have different results depending on the
version: on 2.3.0.1 and before, it would return powerpc-wrs-vxworksae;
on 2.4 and later it would return powerpc-wrs-vxworks. That (plus the
fact the e500v2 and ppc compilers use the same executables: ccppc and
c++ppc) makes us specify one compiler description per CPU. In each of
these descriptions, the target is hard-coded instead of being deduced
from cc${PREFIX} -v.
TN: O312-038
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@238877 936e1b1b-40f2-da11-902a-00137254ae57
The CPU values used so far are actually wrong (it should be PENTIUM4),
but it turns out that the WRS GNU toolchain actually already defines CPU
correctly by default. So no need to pass it again.
For NB19-019.
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@234284 936e1b1b-40f2-da11-902a-00137254ae57
Add ".stdout" and ".stderr" to Clean'Source_Artifact_Extensions ("C")
* cpp.xml:
Add ".stdout" and ".stderr" to Clean'Source_Artifact_Extensions ("C++")
* gnat.xml:
Add ".stdout" and ".stderr" to Clean'Source_Artifact_Extensions ("Ada")
* gprbuild-compilation-process.adb:
(Run): New String parameter Source, defaulted to the empty string.
When Source is not empty and --complete-output has been specified,
redirect standard output of the compiler to <source_file_name>.stdout
and standard error to <source_file_name>.stderr.
* gprbuild-compile.adb:
(Print_Compilation_Outputs): New procedure. When --complete-output is
specified, output the last standard output of the compilation to
standard output and the last standard error to standard error, if they exist.
(Await_Compile): For results of compilations, call Print_Compilation_Outputs
(Compilation_Phase.Process_Project_Phase_1): If source is up to date,
call Print_Compilation_Outputs.
* gprbuild-main.adb:
(Scan_Arg): New option --complete-output, allowed only on the command
line and incompatible with option --distributed=.
Implements N718-026
"replay" facility for gprbuild
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@233198 936e1b1b-40f2-da11-902a-00137254ae57