check linker correctly used [ci-ga-cmake-verbose]

This commit is contained in:
tequ
2025-11-28 00:00:08 +09:00
parent 8be811c7d1
commit e4d2ea180d
2 changed files with 8 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ on:
branches: ["dev", "candidate", "release"]
pull_request:
branches: ["dev", "candidate", "release"]
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
@@ -279,6 +280,9 @@ jobs:
pipx install "conan>=2.0,<3"
echo "$HOME/.local/bin" >> $GITHUB_PATH
# Add ccache PATH
echo "/usr/lib/ccache" >> $GITHUB_PATH
- name: Check environment
run: |
echo "PATH:"
@@ -320,8 +324,8 @@ jobs:
generator: Ninja
configuration: ${{ matrix.configuration }}
build_dir: ${{ env.build_dir }}
cc: ${{ matrix.cc }}
cxx: ${{ matrix.cxx }}
# cc: ${{ matrix.cc }}
# cxx: ${{ matrix.cxx }}
compiler-id: ${{ matrix.compiler_id }}
cache_version: ${{ env.CACHE_VERSION }}
main_branch: ${{ env.MAIN_BRANCH_NAME }}

View File

@@ -149,6 +149,7 @@ if (use_gold AND is_gcc)
required to make gold play nicely with jemalloc.
#]=========================================================]
if (("${LD_VERSION}" MATCHES "GNU gold") AND (NOT jemalloc))
message(STATUS "Using gold linker")
target_link_libraries (common
INTERFACE
-fuse-ld=gold
@@ -170,6 +171,7 @@ if (use_lld)
COMMAND ${CMAKE_CXX_COMPILER} -fuse-ld=lld -Wl,--version
ERROR_QUIET OUTPUT_VARIABLE LD_VERSION)
if ("${LD_VERSION}" MATCHES "LLD")
message(STATUS "Using lld linker")
target_link_libraries (common INTERFACE -fuse-ld=lld)
endif ()
unset (LD_VERSION)