8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
12 lines
354 B
Text
12 lines
354 B
Text
#! @shell@ -e
|
|
|
|
initString="--init={\"cacheDirectory\": \"/tmp/cquery\", \"extraClangArguments\": [@standard_library_includes@"
|
|
|
|
if [ "${NIX_CFLAGS_COMPILE}" != "" ]; then
|
|
read -a cflags_array <<< ${NIX_CFLAGS_COMPILE}
|
|
initString+=$(printf ', \"%s\"' "${cflags_array[@]}")
|
|
fi
|
|
|
|
initString+="]}"
|
|
|
|
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "$@"
|