[all-commits] [llvm/llvm-project] 2f2519: [compiler-rt] Use C_STANDARD instead of custom log...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Tue Apr 26 02:37:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f251925db060f83894a4cf5448259b7a1255552
      https://github.com/llvm/llvm-project/commit/2f251925db060f83894a4cf5448259b7a1255552
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-04-26 (Tue, 26 Apr 2022)

  Changed paths:
    M compiler-rt/cmake/Modules/AddCompilerRT.cmake
    M compiler-rt/cmake/builtin-config-ix.cmake
    M compiler-rt/cmake/config-ix.cmake
    M compiler-rt/cmake/crt-config-ix.cmake
    M compiler-rt/lib/builtins/CMakeLists.txt
    M compiler-rt/lib/crt/CMakeLists.txt

  Log Message:
  -----------
  [compiler-rt] Use C_STANDARD instead of custom logic for adding -std=c11

Apply this in add_compiler_rt_runtime instead of manually adding it
to the individual projects. This applies the option on more
parts of compiler-rt than before, but should ideally not make any
difference assuming the other runtimes that lacked the option
also were C11 compatible.

Not marking this as required, to match the existing behaviour (where
`-std=c11` was added only if supported by the compiler).

This was suggested during the review of D110005.

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




More information about the All-commits mailing list