Commit 2ad9dce2 authored by incardon's avatar incardon
Browse files

Fixing installation on OSX

parent a9743fd5
#! /bin/bash #! /bin/bash
function gpp_clang()
{
if [ x"$dgc_compiler" == g++ ]; then
CXX=g++
CC=gcc
F77=gfortran
FC=gfortran
else
CXX=clang++
CC=clang
F77=gfortran
FC=gfortran
fi
}
function detect_compiler() function detect_compiler()
{ {
gpp_found=0 gpp_found=0
...@@ -49,9 +65,9 @@ function detect_compiler() ...@@ -49,9 +65,9 @@ function detect_compiler()
dgc_ret=1 dgc_ret=1
gpp_found=1 gpp_found=1
fi fi
else
dgc_ret=2
fi fi
dgc_ret=2
fi fi
g++ --version | grep g++ g++ --version | grep g++
...@@ -164,17 +180,11 @@ function detect_compiler() ...@@ -164,17 +180,11 @@ function detect_compiler()
FC=ifort FC=ifort
dgc_compiler=icpc dgc_compiler=icpc
else else
CXX=g++ gpp_clang
CC=gcc
F77=gfortran
FC=gfortran
fi fi
dgc_ret=1 dgc_ret=1
else else
CXX=g++ gpp_clang
CC=gcc
F77=gfortran
FC=gfortran
fi fi
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment