[compiler-rt] 6f983f8 - [compiler-rt] Set the default C++ library to libc++ on OpenBSD (#107694)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 15:33:32 PST 2024


Author: Brad Smith
Date: 2024-12-19T18:33:29-05:00
New Revision: 6f983f88537415952ec528c42f89f1d5b620fe68

URL: https://github.com/llvm/llvm-project/commit/6f983f88537415952ec528c42f89f1d5b620fe68
DIFF: https://github.com/llvm/llvm-project/commit/6f983f88537415952ec528c42f89f1d5b620fe68.diff

LOG: [compiler-rt] Set the default C++ library to libc++ on OpenBSD (#107694)

Added: 
    

Modified: 
    compiler-rt/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt
index 80d5aaabfd8c3f..2c52788de56af7 100644
--- a/compiler-rt/CMakeLists.txt
+++ b/compiler-rt/CMakeLists.txt
@@ -221,7 +221,7 @@ macro(handle_default_cxx_lib var)
     set(${var}_LIBNAME "${CMAKE_MATCH_1}")
     set(${var}_SYSTEM 1)
   elseif (${var} STREQUAL "default")
-    if (APPLE OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
+    if (APPLE OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
       set(${var}_LIBNAME "libc++")
       set(${var}_SYSTEM 1)
     elseif (FUCHSIA)


        


More information about the llvm-commits mailing list