diff options
author | midipix <writeonce@midipix.org> | 2015-09-24 21:44:09 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:22 -0500 |
commit | 193e5bdec4e7cd8be8586cdcc40c9fdcc8571b60 (patch) | |
tree | 92b0d7f24be342b30ef45b6a436041dcde467dc1 | |
parent | b023b253cbd2ebc34b40dee194c96d5c7dcc5080 (diff) | |
download | perk-193e5bdec4e7cd8be8586cdcc40c9fdcc8571b60.tar.bz2 perk-193e5bdec4e7cd8be8586cdcc40c9fdcc8571b60.tar.xz |
build system: when set, verify that CC passes as a valid compiler.
-rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -168,6 +168,10 @@ common_defaults() native_defaults() { # toolchain + if [ x"$CC" != x ]; then + $CC -dM -E - < /dev/null > /dev/null || exit 2 + fi + [ -z "$mb_native_cc" ] && mb_native_cc=$CC [ -z "$mb_native_cc" ] && mb_native_cc='cc' $mb_native_cc -dM -E - < /dev/null > /dev/null 2>/dev/null || mb_native_cc= |