summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-08-21 00:53:08 -0700
committerMichael Forney <mforney@mforney.org>2017-10-23 21:43:52 -0700
commit224b5fdbf9659815321b9bd94de7839d500dd760 (patch)
tree578fb221d038f63f9cb32d1ae1bcd43295862030 /scripts
parent7c4274cfb305a52296f0f03113f9bdabf3cd0aa4 (diff)
Add mechanism to probe for toolchain features
Diffstat (limited to 'scripts')
-rw-r--r--scripts/probe.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/probe.rc b/scripts/probe.rc
new file mode 100644
index 00000000..aba1099d
--- /dev/null
+++ b/scripts/probe.rc
@@ -0,0 +1,7 @@
+flag e +
+
+var=$1
+shift
+if($* >[2]/dev/null)
+ echo '#define '$var' 1'
+status=()