[all-commits] [llvm/llvm-project] 1f71bc: Build libSupport with -Werror=global-constructors ...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Fri Jul 16 15:25:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f71bcabb77df482cc0dc7bab90a73e15f3e347b
      https://github.com/llvm/llvm-project/commit/1f71bcabb77df482cc0dc7bab90a73e15f3e347b
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2021-07-16 (Fri, 16 Jul 2021)

  Changed paths:
    M llvm/lib/Support/CMakeLists.txt

  Log Message:
  -----------
  Build libSupport with -Werror=global-constructors (NFC)

Ensure that libSupport does not carry any static global initializer.
libSupport can be embedded in use cases where we don't want to load all
cl::opt unless we want to parse the command line.
ManagedStatic can be used to enable lazy-initialization of globals.




More information about the All-commits mailing list