mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
db37a86453
Fixes #126936
10 lines
324 B
Plaintext
10 lines
324 B
Plaintext
#! @shell@ -e
|
|
|
|
printf -v extraArgs ',\"%s\"' \
|
|
$(cat @clang@/nix-support/libc-cflags \
|
|
@clang@/nix-support/libcxx-cxxflags) \
|
|
${NIX_CFLAGS_COMPILE}
|
|
initString="--init={\"clang\":{\"extraArgs\":[${extraArgs:1}],\"resourceDir\":\"@clang@/resource-root\"}}"
|
|
|
|
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "$@"
|