File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
prerequisites/install-functions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -173,11 +173,12 @@ find_or_install()
173
173
174
174
else
175
175
176
- info " $this_script : Checking whether $executable in PATH wraps gfortran version >= $minimum_version ... "
176
+ export minimum_acceptable_version=$( ./build.sh -V gcc)
177
+ info " $this_script : Checking whether $executable in PATH wraps gfortran version >= $minimum_acceptable_version ... "
177
178
$executable acceptable_compiler.f90 -o acceptable_compiler || true ;
178
179
$executable print_true.f90 -o print_true || true ;
179
180
if [[ -f ./acceptable_compiler && -f ./print_true ]]; then
180
- acceptable=$( ./acceptable_compiler $minimum_version )
181
+ acceptable=$( ./acceptable_compiler $minimum_acceptable_version )
181
182
is_true=$( ./print_true)
182
183
rm acceptable_compiler print_true
183
184
else
@@ -278,9 +279,8 @@ find_or_install()
278
279
$executable -o print_true print_true.f90 || true ;
279
280
if [[ -f ./acceptable_compiler && -f ./print_true ]]; then
280
281
is_true=$( ./print_true)
281
- emergency " Executing ` ./acceptable_compiler $minimum_version ` "
282
- ./acceptable_compiler $minimum_version
283
- acceptable=$( ./acceptable_compiler $minimum_version )
282
+ info " Executing './acceptable_compiler $minimum_acceptable_version '"
283
+ acceptable=$( ./acceptable_compiler $minimum_acceptable_version )
284
284
rm acceptable_compiler print_true
285
285
else
286
286
acceptable=false
You can’t perform that action at this time.
0 commit comments