[libc-commits] [libc] 77f0708 - [libc]: Remove `-Wglobal-constructors` for libc tests (#131485)

via libc-commits libc-commits at lists.llvm.org
Tue Apr 15 17:24:10 PDT 2025


Author: Vinay Deshmukh
Date: 2025-04-15T19:24:07-05:00
New Revision: 77f0708b9d4feee8b8a67a5f571be741be4e26af

URL: https://github.com/llvm/llvm-project/commit/77f0708b9d4feee8b8a67a5f571be741be4e26af
DIFF: https://github.com/llvm/llvm-project/commit/77f0708b9d4feee8b8a67a5f571be741be4e26af.diff

LOG: [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

Added: 
    

Modified: 
    libc/cmake/modules/LLVMLibCTestRules.cmake

Removed: 
    


################################################################################
diff  --git a/libc/cmake/modules/LLVMLibCTestRules.cmake b/libc/cmake/modules/LLVMLibCTestRules.cmake
index 63a8e9ecda002..a28e15fc5e394 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)


        


More information about the libc-commits mailing list