aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-20 06:09:50 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-20 06:09:50 +0000
commiteffe9fbdbbc278e54ec42fbf2c7021f6f68132ab (patch)
tree0beebf33675fbeedb90ea11ee714fb58cdb993e0
parent122a7b5393bd3539e5919ec936e9f66e786343a1 (diff)
downloadpaludis-effe9fbdbbc278e54ec42fbf2c7021f6f68132ab.tar.gz
paludis-effe9fbdbbc278e54ec42fbf2c7021f6f68132ab.tar.xz
Display compiler version in --version, if known.
-rw-r--r--src/paludis.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/paludis.cc b/src/paludis.cc
index a2a0fa5..8725ae5 100644
--- a/src/paludis.cc
+++ b/src/paludis.cc
@@ -108,7 +108,15 @@ main(int argc, char *argv[])
cout << endl << endl;
cout << "Built by " << PALUDIS_BUILD_USER << "@" << PALUDIS_BUILD_HOST
<< " on " << PALUDIS_BUILD_DATE << endl;
- cout << "Compiler: " << PALUDIS_BUILD_CXX << endl;
+ cout << "CXX: " << PALUDIS_BUILD_CXX
+#ifdef __VERSION__
+ << " " << __VERSION__
+#else
+# ifdef __ICC
+ << " " << __ICC
+# endif
+#endif
+ << endl;
cout << "CXXFLAGS: " << PALUDIS_BUILD_CXXFLAGS << endl;
cout << "LDFLAGS: " << PALUDIS_BUILD_LDFLAGS << endl;
cout << "SYSCONFDIR: " << SYSCONFDIR << endl;