From 6673d9ab5267ff9cfc85f22c38fed5c5e0916df5 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 16 Oct 2018 20:03:05 -0700 Subject: 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. --- probe/gen.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'probe/gen.lua') 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') -- cgit v1.2.3