summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-11-18 20:19:22 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-11-19 00:21:24 +0100
commit70bb29db62766912eb3080e3901190677249b5fd (patch)
treefe9bc85792782f6a612d72799fecb585c62d2816
parentupdate TODO (diff)
downloadsystemd-70bb29db62766912eb3080e3901190677249b5fd.tar.xz
systemd-70bb29db62766912eb3080e3901190677249b5fd.zip
mkosi: Enable clangd execution for all distributions
-rwxr-xr-xmkosi.images/build/mkosi.build.chroot7
-rwxr-xr-xmkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot4
2 files changed, 7 insertions, 4 deletions
diff --git a/mkosi.images/build/mkosi.build.chroot b/mkosi.images/build/mkosi.build.chroot
new file mode 100755
index 0000000000..4a3c977a78
--- /dev/null
+++ b/mkosi.images/build/mkosi.build.chroot
@@ -0,0 +1,7 @@
+#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+set -e
+
+if [[ "$1" == "clangd" ]]; then
+ exec "$@"
+fi
diff --git a/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot b/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot
index f0bdcc13e6..6c66888afe 100755
--- a/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot
+++ b/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot
@@ -2,10 +2,6 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
-if [[ "$1" == "clangd" ]]; then
- exec "$@"
-fi
-
if [[ ! -f "pkg/$PKG_SUBDIR/PKGBUILD" ]]; then
echo "PKGBUILD not found at pkg/$PKG_SUBDIR/PKGBUILD, run mkosi once with -ff to make sure the PKGBUILD is cloned" >&2
exit 1