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

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

# Run the compiler and check if it succeeded

printf '$ %s' "$XCC" >&2
printf ' %q' "$@" >&2
printf ' -o /dev/null\n' >&2

$XCC "$@" -o /dev/null