Skip to content
Snippets Groups Projects
Commit 85b873fa authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing gcc detection

parent 634c5392
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,7 @@ function detect_compiler()
fi
g++ --version | grep "clang" > /dev/null 2>&1
if [ $? == 0 $gpp_found -ne 1 ]; then
if [ $? == 0 -a $gpp_found -ne 1 ]; then
dgc_major=$(g++ --version | grep g++ | sed 's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1/g')
dgc_middle=$(g++ --version | grep g++ | sed 's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\2/g')
dgc_minor=$(g++ --version | grep g++ | sed 's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\3/g')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment