5 for i in "${!args[@]}"; do
6 # x86_64-fortanix-unknown-sgx doesn't have a C sysroot for things like
7 # stdint.h and the C++ STL. Unlike GCC, clang will not use the host's
8 # sysroot instead. Force it.
9 if [ "${args[$i]}" = "--target=x86_64-fortanix-unknown-sgx" ]; then
10 args[$i]="--target=x86_64-unknown-linux-gnu"
14 exec "${0/x86_64-fortanix-unknown-sgx-clang/clang}" "${args[@]}"