summaryrefslogtreecommitdiff
path: root/probe/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2018-10-16 20:03:05 -0700
committerMichael Forney <mforney@mforney.org>2018-10-18 15:27:53 -0700
commit6673d9ab5267ff9cfc85f22c38fed5c5e0916df5 (patch)
tree1ff249f091dc40bb3f4f6d7ffe8838bd2f5adc23 /probe/gen.lua
parent96bcd25021135928929e629fb9d3a86571e11e26 (diff)
curl: Probe for size of size_t, time_t and long
There are still several more SIZEOF_* constants in curl_config.h, but they seem to match for architectures we care about.
Diffstat (limited to 'probe/gen.lua')
-rw-r--r--probe/gen.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/probe/gen.lua b/probe/gen.lua
index eebb877f..321f283c 100644
--- a/probe/gen.lua
+++ b/probe/gen.lua
@@ -1,6 +1,14 @@
local function probe(var)
- build('probe', '$outdir/'..var, '$dir/'..var, {var=var})
+ build('probe', '$outdir/'..var, {'$dir/'..var, '|', 'scripts/probe.sh'}, {var=var})
end
probe('HAVE_IMMINTRIN_H')
probe('HAVE__MM_MOVEMASK_EPI8')
+
+local function probesize(var)
+ build('probesize', '$outdir/'..var, {'$dir/'..var, '|', 'scripts/probe-size.sh'}, {var=var})
+end
+
+probesize('SIZEOF_LONG')
+probesize('SIZEOF_SIZE_T')
+probesize('SIZEOF_TIME_T')