From 473e0d0f4115a5db78230ea72b07b06521eaebcd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 12 Jul 2024 11:33:31 +0200
Subject: [PATCH] Add native file for building against LLVM 15 (both Clang and
 libc++)

---
 scripts/llvm-15.ini | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 scripts/llvm-15.ini

diff --git a/scripts/llvm-15.ini b/scripts/llvm-15.ini
new file mode 100644
index 00000000..2401cc50
--- /dev/null
+++ b/scripts/llvm-15.ini
@@ -0,0 +1,14 @@
+# For compiling with LLVM 15 (both Clang and libc++)
+# Useful for testing compilation under macOS with Xcode
+# Under Debian, requires the following packages: clang-15 libc++-15-dev libc++abi-15-dev
+
+[binaries]
+cpp = 'clang++-15'
+
+[built-in options]
+# The -fexperimental-library flag is needed to have access to the ranges library
+# Should no longer be needed with LLVM ⩾16.
+# The -Wno-unqualified-std-cast-call remove many warnings about “move” not being
+# qualified with “std::” namespace.
+cpp_args = ['-stdlib=libc++', '-Wno-unqualified-std-cast-call', '-fexperimental-library' ]
+cpp_link_args = [ '-stdlib=libc++' ]
-- 
GitLab