[all-commits] [llvm/llvm-project] fa981b: Set LLVM_ATOMIC_LIB variable for convenient linkin...

Sam James via All-commits all-commits at lists.llvm.org
Thu Nov 3 13:08:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa981b541365190ae646d2dce575706cd0626cf7
      https://github.com/llvm/llvm-project/commit/fa981b541365190ae646d2dce575706cd0626cf7
  Author: Sam James <sam at gentoo.org>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M llvm/cmake/modules/AddLLVM.cmake
    M llvm/cmake/modules/CheckAtomic.cmake
    M llvm/lib/Support/CMakeLists.txt
    M llvm/tools/dsymutil/CMakeLists.txt

  Log Message:
  -----------
  Set LLVM_ATOMIC_LIB variable for convenient linking against libatomic

* Set LLVM_ATOMIC_LIB to keep track of when we need to link against libatomic.
* Add detection of mold linker which is required for this.
* Use --as-needed when linking against libatomic as a bonus. On some platforms,
  libatomic may be required only sometimes.

Bug: https://bugs.gentoo.org/832675
Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever at Apache.Org>
Tested-by: erhard_f at mailbox.org <erhard_f at mailbox.org>

Differential Revision: https://reviews.llvm.org/D136280


  Commit: f0b451c77f14947e3e7d314f048679fa2f5c6298
      https://github.com/llvm/llvm-project/commit/f0b451c77f14947e3e7d314f048679fa2f5c6298
  Author: Sam James <sam at gentoo.org>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M lld/COFF/CMakeLists.txt
    M lld/Common/CMakeLists.txt

  Log Message:
  -----------
  Link liblldCOFF against libatomic when necessary

Also simplify code for liblldCommon using the new LLVM_ATOMIC_LIB variable.

Depends on D136280.

Bug: https://bugs.gentoo.org/832675
Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever at Apache.Org>
Tested-by: erhard_f at mailbox.org <erhard_f at mailbox.org>

Differential Revision: https://reviews.llvm.org/D136281


  Commit: 20132d8eaa68a6c53e152718beda1dc0f4c9ff6c
      https://github.com/llvm/llvm-project/commit/20132d8eaa68a6c53e152718beda1dc0f4c9ff6c
  Author: Sam James <sam at gentoo.org>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M clang/CMakeLists.txt
    M clang/lib/Basic/CMakeLists.txt

  Log Message:
  -----------
  Link libclangBasic against libatomic when necessary.

This is necessary at least on PPC32.

Depends on D136280.

Bug: https://bugs.gentoo.org/874024
Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever at Apache.Org>
Tested-by: erhard_f at mailbox.org <erhard_f at mailbox.org>

Differential Revision: https://reviews.llvm.org/D136282


Compare: https://github.com/llvm/llvm-project/compare/f62d8a1a5044...20132d8eaa68


More information about the All-commits mailing list