summaryrefslogtreecommitdiffstats
path: root/scripts/t/mock-bin/gcc
blob: 0174f17bb4b6f161d6e2c53953bdbd4052b1e14e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

args="$@"

while [ $# -gt 0 ]; do
  opt="$1"
  shift

  case "$opt" in
  -dumpmachine)
    echo x86_64-linux-gnu
    exit 0
  esac
done

# Otherwise fail hard.
echo "$0: unsupported command ($args) in mock wrapper"
exit 1