summaryrefslogtreecommitdiff
path: root/src/tests/show_compiler_details
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/show_compiler_details')
-rwxr-xr-xsrc/tests/show_compiler_details4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/show_compiler_details b/src/tests/show_compiler_details
index fbbc253..678d63b 100755
--- a/src/tests/show_compiler_details
+++ b/src/tests/show_compiler_details
@@ -8,6 +8,10 @@ CC=${CC:-cc}
CPP=${CPP:-cpp}
LD=${LD:-ld}
+# handle strange environments
+command -v gcpp >/dev/null 2>&1 && CPP=gcpp
+command -v gcc >/dev/null 2>&1 && CC=gcc
+
echo "XXX:--------------------------------------------------"
echo "XXX: $0: preprocessor ('$CPP') version"
echo