2018-03-28 12:13:04 +02:00
|
|
|
#! @shell@ -e
|
|
|
|
|
2018-08-09 01:31:15 +02:00
|
|
|
initString="--init={\"cacheDirectory\": \"/tmp/cquery\", \"extraClangArguments\": [@standard_library_includes@"
|
2018-03-28 12:13:04 +02:00
|
|
|
|
|
|
|
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}" "${extraFlagsArray[@]}" "$@"
|