2018-03-28 11:13:04 +01:00
|
|
|
#! @shell@ -e
|
|
|
|
|
2018-08-09 00:31:15 +01:00
|
|
|
initString="--init={\"cacheDirectory\": \"/tmp/cquery\", \"extraClangArguments\": [@standard_library_includes@"
|
2018-03-28 11:13:04 +01:00
|
|
|
|
|
|
|
if [ "${NIX_CFLAGS_COMPILE}" != "" ]; then
|
|
|
|
read -a cflags_array <<< ${NIX_CFLAGS_COMPILE}
|
|
|
|
initString+=$(printf ', \"%s\"' "${cflags_array[@]}")
|
|
|
|
fi
|
|
|
|
|
|
|
|
initString+="]}"
|
|
|
|
|
2019-09-10 23:52:53 +01:00
|
|
|
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "$@"
|