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

# 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