aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/external/c-testsuite/runners/single-exec/clang-nolibc-x86_64
blob: c44dc5206740edc9684e66fd5b8c3a75c00481c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh

set -e
set -u

if ! test "x86_64" = "$(uname -m)"
then
    echo "incorrect host for test" 1>&2
    exit 1
fi

CC=clang
# A typical configuration
CFLAGS="-nolibc --std=c11 -O2"

export CC CFLAGS
exec ./runners/single-exec/posix $1