Michel Dänzer | cc2b3a9 | 2019-05-03 10:49:43 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | set -o xtrace |
| 5 | |
| 6 | # We need to control the version of llvm-config we're using, so we'll |
| 7 | # generate a native file to do so. This requires meson >=0.49 |
| 8 | if test -n "$LLVM_VERSION"; then |
| 9 | LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 10 | echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file |
| 11 | $LLVM_CONFIG --version |
| 12 | else |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 13 | rm -f native.file |
Michel Dänzer | cc2b3a9 | 2019-05-03 10:49:43 +0200 | [diff] [blame] | 14 | touch native.file |
| 15 | fi |
| 16 | |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 17 | rm -rf _build |
Michel Dänzer | cc2b3a9 | 2019-05-03 10:49:43 +0200 | [diff] [blame] | 18 | meson _build --native-file=native.file \ |
| 19 | -D buildtype=debug \ |
| 20 | -D build-tests=true \ |
| 21 | -D libunwind=${UNWIND} \ |
| 22 | ${DRI_LOADERS} \ |
| 23 | -D dri-drivers=${DRI_DRIVERS:-[]} \ |
| 24 | ${GALLIUM_ST} \ |
| 25 | -D gallium-drivers=${GALLIUM_DRIVERS:-[]} \ |
| 26 | -D vulkan-drivers=${VULKAN_DRIVERS:-[]} \ |
Eric Engestrom | 5f8d29a | 2019-05-08 18:17:23 +0200 | [diff] [blame^] | 27 | -D I-love-half-baked-turnips=true \ |
| 28 | ${EXTRA_OPTION} |
Michel Dänzer | cc2b3a9 | 2019-05-03 10:49:43 +0200 | [diff] [blame] | 29 | cd _build |
| 30 | meson configure |
| 31 | ninja -j4 |
| 32 | LC_ALL=C.UTF-8 ninja test |