Files
nixpkgs/pkgs/development/tools/misc/ccls/wrapper
T
Gabriel Ebner baedf2c785 ccls: fix libc++ header path
(cherry picked from commit eef236e8efdf99e4e4d61815aa9889e5b64e6bc3)
2021-05-24 17:44:27 +02:00

10 lines
282 B
Plaintext

#! @shell@ -e
printf -v extraArgs ',\"%s\"' \
$(cat @clang@/nix-support/libc-cflags \
@clang@/nix-support/libcxx-cxxflags) \
${NIX_CFLAGS_COMPILE}
initString="--init={\"clang\":{\"extraArgs\":[${extraArgs:1}]}}"
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "$@"