mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
13 lines
343 B
Plaintext
13 lines
343 B
Plaintext
|
#! @shell@ -e
|
||
|
|
||
|
initString="--init={\"clang\":{\"extraArgs\": [@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[@]}" "$@"
|