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

Brad Smith via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 7 05:16:38 PDT 2024


https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/107694

None

>From 84c8210ea9cf4926c62cc9e1c93cef6a43d46327 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Sat, 7 Sep 2024 08:12:03 -0400
Subject: [PATCH] [compiler-rt] Set the default C++ library to libc++ on
 OpenBSD

---
 compiler-rt/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt
index 57914c3175e815..49f5fb04343a36 100644
--- a/compiler-rt/CMakeLists.txt
+++ b/compiler-rt/CMakeLists.txt
@@ -200,7 +200,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