Skip to content

Commit

Permalink
fix gcc toolchain overloading in build.sh
Browse files Browse the repository at this point in the history
The LD_LIBRARY_PATH was not pointing to correct location and was also
including $PATH instead of $LD_LIBRARY_PATH.

refs compiler-explorer/compiler-explorer#5917

Signed-off-by: Marc Poulhiès <[email protected]>
  • Loading branch information
dkm committed Jan 17, 2024
1 parent 274de36 commit 30fe1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ for i in 1 2 3; do
for candidate in $(find /opt/compiler-explorer/ -maxdepth 1 -name "gcc-${V}*" -type d); do
echo "Using ${candidate} as the host base compiler"
export PATH="${candidate}/bin:${PATH}"
export LD_LIBRARY_PATH="${candidate}/lib:${PATH}"
export LD_LIBRARY_PATH="${candidate}/lib:${candidate}/lib64:${LD_LIBRARY_PATH}"
F=1
done
if [[ "$F" == 1 ]]; then
Expand Down

0 comments on commit 30fe1b4

Please sign in to comment.