mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
The box verb was added as a synonym for sandbox. sandbox still works, but let's switch to box as it's shorter.
18 lines
360 B
Bash
Executable File
18 lines
360 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -e
|
|
|
|
if command -v flatpak-spawn >/dev/null; then
|
|
SPAWN=(flatpak-spawn --host)
|
|
else
|
|
SPAWN=()
|
|
fi
|
|
|
|
exec "${SPAWN[@]}" \
|
|
mkosi box -- \
|
|
clangd \
|
|
--compile-commands-dir=build \
|
|
--path-mappings="\
|
|
$(pwd)/mkosi.tools/usr/include=/usr/include" \
|
|
"$@"
|