Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test for C/C++ compiler #394

Merged
merged 1 commit into from
May 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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