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 2065755
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,13 @@ 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
if [ ! echo "" | $CXX -E -fuse-fd=$LINKER > /dev/null ]
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 2065755

Please sign in to comment.