python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / clang-tools / wrapper
blob1008023fdc0d18466bb69b41c1e1769a12f72909
1 #!/bin/sh
3 buildcpath() {
4 local path after
5 while (( $# )); do
6 case $1 in
7 -isystem)
8 shift
9 path=$path${path:+':'}$1
11 -idirafter)
12 shift
13 after=$after${after:+':'}$1
15 esac
16 shift
17 done
18 echo $path${after:+':'}$after
21 export CPATH=${CPATH}${CPATH:+':'}$(buildcpath ${NIX_CFLAGS_COMPILE} \
22 $(<@clang@/nix-support/libc-cflags)):@clang@/resource-root/include
23 export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}${CPLUS_INCLUDE_PATH:+':'}$(buildcpath ${NIX_CFLAGS_COMPILE} \
24 $(<@clang@/nix-support/libcxx-cxxflags) \
25 $(<@clang@/nix-support/libc-cflags)):@clang@/resource-root/include
27 exec -a "$0" @unwrapped@/bin/$(basename $0) "$@"