From 77f0708b9d4feee8b8a67a5f571be741be4e26af Mon Sep 17 00:00:00 2001 From: Vinay Deshmukh <32487576+vinay-deshmukh@users.noreply.github.com> Date: Tue, 15 Apr 2025 20:24:07 -0400 Subject: [PATCH] [libc]: Remove `-Wglobal-constructors` for libc tests (#131485) * Relates to: https://github.com/llvm/llvm-project/issues/119281 * Removes `-Wglobal-constructors` as per: https://github.com/llvm/llvm-project/pull/131485#pullrequestreview-2728020622 --- libc/cmake/modules/LLVMLibCTestRules.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/libc/cmake/modules/LLVMLibCTestRules.cmake b/libc/cmake/modules/LLVMLibCTestRules.cmake index 63a8e9ecda00..a28e15fc5e39 100644 --- a/libc/cmake/modules/LLVMLibCTestRules.cmake +++ b/libc/cmake/modules/LLVMLibCTestRules.cmake @@ -57,7 +57,6 @@ function(_get_common_test_compile_options output_var c_test flags) list(APPEND compile_options "-Wnewline-eof") list(APPEND compile_options "-Wnonportable-system-include-path") list(APPEND compile_options "-Wthread-safety") - # list(APPEND compile_options "-Wglobal-constructors") endif() endif() set(${output_var} ${compile_options} PARENT_SCOPE)