| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Make-lang.in | ||
| Makefile.in | ||
| ada-tree.def | ||
| ada-tree.h | ||
| ada.h | ||
| config-lang.in | ||
| cuintp.c | ||
| decl.c | ||
| gadaint.h | ||
| gigi.h | ||
| lang-specs.h | ||
| lang.opt | ||
| misc.c | ||
| targtyps.c | ||
| trans.c | ||
| utils.c | ||
| utils2.c |
gnattools build machinery uses just-build xgcc and xg++ as $(CC) and $(CXX) in native builds. However, if C and C++ languages are not enabled, it won't find them. So, enable C and C++ if Ada is enabled. Most of the time, this is probably no big deal: C is always enabled anyway, and C++ is already enabled for bootstraps. We need not enable those for cross builds, however. At first I just took the logic from gnattools/configure, but found it to be lacking: it would use the just-built tools even in cross-back settings, whose tools just built for the host would not run on the build machine. So I've narrowed down the test to rely on autoconf-detected cross-ness (build->host only), but also to ensure that host matches build, and that target matches host. I've considered sourcing ada/config-lang.in from within gnattools/configure, and testing lang_requires as set by it, so as to avoid a duplication of tests that ought to remain in sync, but decided it would be too fragile, as ada/config-lang.in does not expect srcdir to refer to gnattools. for gcc/ada/ChangeLog PR ada/81878 * gcc-interface/config-lang.in (lang_requires): Set to "c c++" when gnattools wants it. for gnattools/ChangeLog PR ada/81878 * configure.ac (default_gnattools_target): Do not mistake just-built host tools as native in cross-back toolchains. * configure: Rebuilt. From-SVN: r266290
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Make-lang.in | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| ada-tree.def | Loading commit data... | |
| ada-tree.h | Loading commit data... | |
| ada.h | Loading commit data... | |
| config-lang.in | Loading commit data... | |
| cuintp.c | Loading commit data... | |
| decl.c | Loading commit data... | |
| gadaint.h | Loading commit data... | |
| gigi.h | Loading commit data... | |
| lang-specs.h | Loading commit data... | |
| lang.opt | Loading commit data... | |
| misc.c | Loading commit data... | |
| targtyps.c | Loading commit data... | |
| trans.c | Loading commit data... | |
| utils.c | Loading commit data... | |
| utils2.c | Loading commit data... |