04f3b76dce
Use NIX_CFLAGS_COMPILE to find additional include paths.
12 lines
341 B
Text
12 lines
341 B
Text
#! @shell@ -e
|
|
|
|
initString="--init={\"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}" "${extraFlagsArray[@]}" "$@"
|