4 if [ "$COMPILER" = "GNU_LINUX" \
5 -o "$COMPILER" = "GNU_DARWIN" \
6 -o "$COMPILER" = "GNU_WINDOWS" ]; then
7 # compiler version report for the gnu compiler on linux and darwin.
9 # older code is needed for some versions of gcc / suse.
10 ver_found=$(gcc -### 2>&1 | grep "gcc version" | sed -e 's/^gcc version \([0-9.][0-9.]*\) .*$/\1/')
12 # if [ ! -d "/usr/include/c++/$ver_found" ]; then
13 # -a ! -d "/usr/include/c++/$ver_found" ]; then
15 # # newest code takes only first two version numbers, since that's how
16 # # suse 11.0 at least is listing the includes.
17 # ver_found=$(gcc -### 2>&1 | grep "gcc version" | sed -e 's/^gcc version \([0-9.][0-9.]*\) .*$/\1/' | sed -e 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1.\2/')
23 elif [ "$COMPILER" = "GNU_ARM_LINUX" ]; then
24 # compiler version report for the gnu compiler on the arm processor.
25 gcc -### 2>&1 | grep "gcc version" | sed -e 's/^gcc version \([0-9.][0-9.]*\) .*$/\1/'
26 #elif [ "$COMPILER" = "VISUAL_CPP" ]; then
27 # # compiler version report for ms visual studio.
28 # ver_raw=`$COMPILER_ROOT_DIR/bin/cl 2>&1 | head -1 | sed -e 's/.*Version \([0-9][0-9]*\)\..*$/\1/'`
29 # if [ "$ver_raw" = "12" ]; then echo 6;
30 # elif [ "$ver_raw" = "13" ]; then echo 7;
31 # elif [ "$ver_raw" = "14" ]; then echo 8;
32 # elif [ "$ver_raw" = "15" ]; then echo 9;
33 # elif [ "$ver_raw" = "16" ]; then echo 10;