Add mechanism to probe for toolchain features

This commit is contained in:
Michael Forney
2017-08-21 00:53:08 -07:00
parent 7c4274cfb3
commit 224b5fdbf9
4 changed files with 14 additions and 0 deletions

7
scripts/probe.rc Normal file
View File

@@ -0,0 +1,7 @@
flag e +
var=$1
shift
if($* >[2]/dev/null)
echo '#define '$var' 1'
status=()