Skip to content

Commit

Permalink
Alternative CI technique for finding linker
Browse files Browse the repository at this point in the history
  • Loading branch information
rollbear committed Jul 9, 2024
1 parent b6d3e1e commit 4ce295f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,14 @@ jobs:
LINKER=`which mold || which gold`
if [ -n "$LINKER" ]
then
link_flags="${link_flags} -fuse-ld=`basename $LINKER`"
LINKER=`basename $LINKER`
# ugly hack for gcc-9
echo "" | $CXX -E -fuse-fd=$LINKER 2>&1 > /dev/null
if [ ! $0 ]
then
LINKER="gold"
fi
link_flags="${link_flags} -fuse-ld=$LINKER"
fi
fi
if [ "x${{ matrix.config.cxx_asan }}" == "xtrue" ]
Expand Down

0 comments on commit 4ce295f

Please sign in to comment.