Skip to content

Commit 2addcb4

Browse files
rousonzbeekman
authored andcommitted
Fix find_or_install bug that put gcc in wrong path
1 parent 2129302 commit 2addcb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prerequisites/install-functions/find_or_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ find_or_install()
156156
# Trigger 'find_or_install gcc' and subsequent build of $package
157157
stack_push dependency_pkg "none" $package "gcc"
158158
stack_push dependency_exe "none" $executable "gfortran"
159-
stack_push dependency_path "none" `./build.sh -P $package` `./build.sh gcc`
159+
stack_push dependency_path "none" `./build.sh -P $package` `./build.sh -P gcc`
160160
fi
161161
fi
162162

@@ -169,7 +169,7 @@ find_or_install()
169169

170170
elif [[ $package == "gcc" ]]; then
171171

172-
# We arrive when the 'elif [[ $package == "mpich" ]]' block pushes "gcc" onto the
172+
# We arrive when the 'elif [[ $package == "gcc" ]]' block pushes "gcc" onto the
173173
# the dependency_pkg stack, resulting in the recursive call 'find_or_install gcc'
174174

175175
# Every branch that discovers an acceptable pre-existing installation must set the

0 commit comments

Comments
 (0)