[compiler-rt] Use C_STANDARD instead of custom logic for adding -std=c11
authorMartin Storsjö <martin@martin.st>
Thu, 24 Mar 2022 11:17:28 +0000 (13:17 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 26 Apr 2022 09:36:20 +0000 (12:36 +0300)
commit2f251925db060f83894a4cf5448259b7a1255552
tree18e48791f8f33e67a97748e445402c9d1f4fbd21
parent86312461b8746df8b8a474129f00c79780117e8a
[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
compiler-rt/cmake/Modules/AddCompilerRT.cmake
compiler-rt/cmake/builtin-config-ix.cmake
compiler-rt/cmake/config-ix.cmake
compiler-rt/cmake/crt-config-ix.cmake
compiler-rt/lib/builtins/CMakeLists.txt
compiler-rt/lib/crt/CMakeLists.txt