Andrew Jeffery | cd97564 | 2024-07-23 14:26:27 +0930 | [diff] [blame] | 1 | #!/usr/bin/sh |
2 | |||||
3 | set -x | ||||
4 | |||||
5 | set -eu | ||||
6 | |||||
7 | UPDATE_BUILDDIR="$(mktemp -d)" | ||||
8 | |||||
9 | trap "rm -rf $UPDATE_BUILDDIR" EXIT | ||||
10 | |||||
11 | export CC=gcc | ||||
12 | export CXX=g++; | ||||
13 | |||||
14 | [ $(uname -m) = 'x86_64' ] | ||||
15 | |||||
16 | meson setup -Dabi=deprecated,stable "$UPDATE_BUILDDIR" | ||||
17 | meson compile -C "$UPDATE_BUILDDIR" abi-dump | ||||
18 | ./scripts/abi-dump-formatter < "$UPDATE_BUILDDIR"/src/current.dump > abi/x86_64/gcc.dump |