toolchain/linux_trampolines/clang_trampoline_linux.sh
raw| 1 | #!/bin/bash |
| 2 | # Copyright 2021 Google LLC |
| 3 | # |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | # Find this file and look for ../../external |
| 8 | BASE_DIR=$( realpath $( dirname ${BASH_SOURCE[0]})) |
| 9 | CLANG_DIR=$( dirname $( dirname $BASE_DIR))/external/*clang_linux_amd64 |
| 10 | |
| 11 | export LD_LIBRARY_PATH=$CLANG_DIR"/usr/lib/x86_64-linux-gnu" |
| 12 | |
| 13 | $CLANG_DIR/bin/clang $@ |