dart-sdk/build/rbe/llvm.sh
Jonas Termansen 80418d5709 Fix RBE through llvm if the source file is linked to the destination.
Change-Id: I97c3321c729c2a0d62a910d5deb50c4876fe6305
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345540
Reviewed-by: Jonas Jensen <jonasfj@google.com>
2024-01-10 14:41:51 +00:00

7 lines
179 B
Bash
Executable file

#!/bin/sh
os=$(uname -s | tr '[A-Z]' '[a-z'])
arch=$(uname -m | tr '[A-Z]' '[a-z'] | sed -E 's/^x86_64$/x64/')
rm -f "$1"
cp "../../buildtools/$os-$arch/clang/bin/llvm" "$1"
"$@"