[llvm] [libc] [libc] default enable -ftrivial-auto-var-init=pattern (PR #78776)
Nick Desaulniers via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 12:52:59 PST 2024
================
@@ -41,6 +41,11 @@ function(_get_common_compile_options output_var flags)
list(APPEND compile_options "-fno-unwind-tables")
list(APPEND compile_options "-fno-asynchronous-unwind-tables")
list(APPEND compile_options "-fno-rtti")
+ # clang-8+, gcc-12+
+ check_cxx_compiler_flag("-ftrivial-auto-var-init=pattern" LIBC_CC_SUPPORTS_PATTERN_INIT)
----------------
nickdesaulniers wrote:
done in 862dc3c034909e68e971b15af95dfd106233f74e
https://github.com/llvm/llvm-project/pull/78776
More information about the llvm-commits
mailing list