@@ -108,7 +108,6 @@ function cleanup_before_exit () {
108
108
}
109
109
trap cleanup_before_exit EXIT # The signal is specified here. Could be SIGINT, SIGTERM etc.
110
110
111
-
112
111
# ## Validation (decide what's required for running your script and error out)
113
112
# ####################################################################
114
113
@@ -145,7 +144,6 @@ info "-v (--version): ${arg_v}"
145
144
info " -V (--version-number): ${arg_V} "
146
145
}
147
146
148
-
149
147
# __________ Process command-line arguments and environment variables _____________
150
148
151
149
export this_script=" $( basename " $0 " ) "
@@ -174,6 +172,9 @@ export CMAKE="${arg_m:-cmake}"
174
172
175
173
verify_this_is_ubuntu ()
176
174
{
175
+ if [[ ${__os} != " Linux" ]]; then
176
+ emergency " ${__os} not supported: this script is intended for use in Windows Subsystem for Linux "
177
+ fi
177
178
linux_standard_base_i=` lsb_release -i`
178
179
untrimmed_name=${linux_standard_base_i##* Distributor ID: }
179
180
linux_distribution=" ${untrimmed_name// [[:space:]]/ } "
@@ -205,10 +206,6 @@ verify_acceptable_release_number()
205
206
}
206
207
verify_acceptable_release_number
207
208
208
- export FC=${arg_f:- gfortran}
209
- export CC=${arg_f:- gcc}
210
- export CXX=${arg_f:- g++}
211
-
212
209
if [[ " ${arg_V} " == " ${__flag_present} " ]]; then
213
210
# Print just the version number
214
211
info " $opencoarrays_version "
@@ -228,6 +225,10 @@ elif [[ "${arg_v}" == "${__flag_present}" ]]; then
228
225
info " http://www.sourceryinstitute.org/license.html"
229
226
info " "
230
227
else
228
+
229
+ export FC=${arg_f:- gfortran}
230
+ export CC=${arg_c:- gcc}
231
+ export CXX=${arg_C:- g++}
231
232
232
233
# Check for and, if necessary, install OpenCoarrays prerequisites
233
234
255
256
mkdir -p " $build_path "
256
257
cd " $build_path "
257
258
info " Configuring OpenCoarrays with the following command:"
258
- info " \" $CMAKE \" \" $OPENCOARRAYS_SRC_DIR \" -DCMAKE_INSTALL_PREFIX=\" $install_prefix \" "
259
- " $CMAKE " " $OPENCOARRAYS_SRC_DIR " -DCMAKE_INSTALL_PREFIX=" $install_prefix "
259
+ info " FC= \" $FC \" CC= \" $CC \" \" $CMAKE \" \" $OPENCOARRAYS_SRC_DIR \" -DCMAKE_INSTALL_PREFIX=\" $install_prefix \" "
260
+ FC= " $FC " CC= " $CC " " $CMAKE " " $OPENCOARRAYS_SRC_DIR " -DCMAKE_INSTALL_PREFIX=" $install_prefix "
260
261
info " Building OpenCoarrays with the following command:"
261
262
info " make -j $arg_j "
262
263
make -j $arg_j
0 commit comments