[all-commits] [llvm/llvm-project] 9cc6d6: [compiler-rt] Explicitly enable C extensions for p...

Raul Tambre via All-commits all-commits at lists.llvm.org
Mon Oct 14 05:07:32 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cc6d6e9a96bda923ff7e7bb7394dfb4d2319b07
      https://github.com/llvm/llvm-project/commit/9cc6d6e9a96bda923ff7e7bb7394dfb4d2319b07
  Author: Raul Tambre <raul at tambre.ee>
  Date:   2024-10-14 (Mon, 14 Oct 2024)

  Changed paths:
    M compiler-rt/CMakeLists.txt
    M compiler-rt/cmake/Modules/AddCompilerRT.cmake
    M compiler-rt/lib/profile/CMakeLists.txt

  Log Message:
  -----------
  [compiler-rt] Explicitly enable C extensions for profile (#110555)

The profiling code requires GNU extensions as it uses functions such as getpagesize(), fdopen(), etc.

The problem manifests when the compiler is built to not default to the extensions mode, e.g. custom config with -std=c2x. CMake didn't support this scenario very well, but it's been fixed by CMP0128. Set the policy to NEW as we now conform to it.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list