summaryrefslogtreecommitdiffstats
path: root/config/cc.sh
blob: e6883f569683829bc8851fad14f94961264b935c (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Copyright © Tavian Barnes <tavianator@tavianator.com>
# SPDX-License-Identifier: 0BSD

# Run the compiler and check if it succeeded

set -eux

$XCC $XCPPFLAGS $XCFLAGS $XLDFLAGS "$@" $XLDLIBS -o /dev/null