[libcamera-devel] [PATCH 08/11] Removes code to force using libc++ instead of libstdc++ if available.

nicholas at rothemail.net nicholas at rothemail.net
Mon Oct 24 07:55:40 CEST 2022


From: Nicholas Roth <nicholas at rothemail.net>

This breaks during cross-compilation when this is not true for the
meson-cross cross-compiler target.

Error:
clang++: error: argument unused during compilation: '-stdlib=libc++' [-Werror,-Wunused-command-line-argument]
---
 meson.build | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/meson.build b/meson.build
index 56910698..7d0588d2 100644
--- a/meson.build
+++ b/meson.build
@@ -95,14 +95,6 @@ if cc.get_id() == 'clang'
         ]
     endif
 
-    # Use libc++ by default if available instead of libstdc++ when compiling
-    # with clang.
-    if cc.find_library('libc++', required: false).found()
-        cpp_arguments += [
-            '-stdlib=libc++',
-        ]
-    endif
-
     cpp_arguments += [
         '-Wextra-semi',
         '-Wthread-safety',
-- 
2.34.1



More information about the libcamera-devel mailing list