Debian Codegraph @

toolchain/android_trampolines/aarch64-linux-android-strip.sh

raw
1 #!/bin/bash
2 # Copyright 2023 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 BASE_DIR=$( realpath $( dirname ${BASH_SOURCE[0]}))
8 # If we invoke clang with an absolute path, that throws off the #include detection (because it
9 # will also expect the system paths to be given with an absolute path). Instead, we find out where
10 # this script is and go two levels up to find external/
11 cd $( dirname $( dirname $BASE_DIR))
12 # Then, we can find the toolchain.
13 CLANG_DIR=external/+download_ndk_linux_amd64_toolchain+ndk_linux_amd64
14
15 $CLANG_DIR/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip $@