2020-04-24 23:36:52 +00:00
|
|
|
#! @shell@ -e
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
printf -v extraArgs ',\"%s\"' \
|
|
|
|
$(cat @clang@/nix-support/libc-cflags \
|
|
|
|
@clang@/nix-support/libcxx-cxxflags) \
|
|
|
|
${NIX_CFLAGS_COMPILE}
|
|
|
|
initString="--init={\"clang\":{\"extraArgs\":[${extraArgs:1}]}}"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "$@"
|