[PATCH master 1/3] .clangd: black-list -mabi=lp64 to enable LSP for 64-bit ARM

Ahmad Fatoum a.fatoum at pengutronix.de
Mon May 22 06:42:08 PDT 2023


clangd invoked via Language Server Protocol chokes on -mabi=lp64, which
we use for ARM64 build. We should eventually fix that by having barebox
itself compile with clang, but till then, let's drop a .clangd file that
instructs clangd to ignore this unsupported option. Pointers and longs
are still 64-bit, presumably because that's the default AArch64 ABI.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 .clangd | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 .clangd

diff --git a/.clangd b/.clangd
new file mode 100644
index 000000000000..58e83cd2871a
--- /dev/null
+++ b/.clangd
@@ -0,0 +1,2 @@
+CompileFlags:
+  Remove: -mabi=lp64
-- 
2.39.2




More information about the barebox mailing list