Skip to content

Commit

Permalink
dnsdist: Try to fix the LTO linking issue in our CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Dec 10, 2024
1 parent d82272a commit 9afcf90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ jobs:
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1:suppressions=${{ env.REPO_HOME }}/build-scripts/UBSan.supp"
UNIT_TESTS: yes
FUZZING_TARGETS: yes
RUSTFLAGS: "-Clinker-plugin-lto"
options: --sysctl net.ipv6.conf.all.disable_ipv6=0
defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ def ci_dnsdist_configure(c, features):
unittests = get_unit_tests()
fuzztargets = get_fuzzing_targets()
tools = f'''AR=llvm-ar-{clang_version} RANLIB=llvm-ranlib-{clang_version}''' if is_compiler_clang() else ''
additional_flags += '-fuse-ld=lld'
configure_cmd = " ".join([
tools,
get_base_configure_cmd(additional_c_flags='', additional_cxx_flags=additional_flags, enable_systemd=False, enable_sodium=False),
Expand Down

0 comments on commit 9afcf90

Please sign in to comment.