Debian Codegraph @

toolchain/linux_trampolines/ar_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 if [[ "$@" == *SKIA_SKIP_LINKING* ]]; then
8 # The archive file is listed as the second argument to this script, and we must make sure
9 # it exists or Bazel will fail a validation step.
10 touch $2
11 exit 0
12 fi
13
14 # Find this file and look for ../../external
15 BASE_DIR=$( realpath $( dirname ${BASH_SOURCE[0]}))
16 CLANG_DIR=$( dirname $( dirname $BASE_DIR))/external/*clang_linux_amd64
17
18 $CLANG_DIR/bin/llvm-ar $@