Skip to content

Commit

Permalink
add test for C/C++ compiler (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero committed May 23, 2018
1 parent abfe82b commit d7e6e62
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install-CGAT-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,13 @@ test_release() {
}


# test whether a C/C++ compiler is available
test_compilers() {
which gcc &> /dev/null || report_error " C compiler not found "
which g++ &> /dev/null || report_error " C++ compiler not found "
}


# function to display help message
help_message() {
echo
Expand Down Expand Up @@ -652,6 +659,8 @@ exit 1

# the script starts here

test_compilers

if [[ $# -eq 0 ]] ; then

help_message
Expand Down

0 comments on commit d7e6e62

Please sign in to comment.