From f04a1fee428003c41c1533025481af683302c2ef Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 4 May 2026 17:13:41 +0200 Subject: [PATCH] CI: Use mold for opensuse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the original way of using this through update-alternatives no longer work Signed-off-by: Jakub Jelen Reviewed-by: Pavol Žáčik Merge-Request: --- .gitlab-ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4046fbd6..d3bc7e7c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -86,7 +86,11 @@ workflow: script: # torture_gssapi_key_exchange_null is excluded because of a bug # https://bugzilla.opensuse.org/show_bug.cgi?id=1254680 - - cmake $CMAKE_OPTIONS $CMAKE_ADDITIONAL_OPTIONS .. && + - cmake + -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=mold" + -DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=mold" + -DCMAKE_MODULE_LINKER_FLAGS="-fuse-ld=mold" + $CMAKE_OPTIONS $CMAKE_ADDITIONAL_OPTIONS .. && make -j$(nproc) && ctest --output-on-failure -E "^torture_gssapi_key_exchange_null$" @@ -610,8 +614,13 @@ tumbleweed/openssl_3.x/x86/gcc: tumbleweed/openssl_3.x/x86_64/gcc7: extends: .tumbleweed - variables: - CMAKE_ADDITIONAL_OPTIONS: "-DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7" + script: + # the gcc7 does not support the -fuse-ld switch so do not include it here + - cmake + -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 + $CMAKE_OPTIONS $CMAKE_ADDITIONAL_OPTIONS .. && + make -j$(nproc) && + ctest --output-on-failure -E "^torture_gssapi_key_exchange_null$" tumbleweed/openssl_3.x/x86/gcc7: extends: .tumbleweed