linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
gen.sh
(613B)
1 rule probe 'sh $dir/probe.sh $var $out $cc $cflags $ldflags -x c -o /dev/null $in'
2 bind description 'PROBE $var'
3
4 rule probesize 'sh $dir/probe-size.sh $var $out $cc $cflags -c -x c -o /dev/null $in'
5 bind description 'PROBESIZE $var'
6
7 _probe() {
8 probe $1 $dir/$1
9 bind var $1
10 }
11
12 _probesize() {
13 probesize $1 $dir/$1
14 bind var $1
15 }
16
17 _probe HAVE__THREAD_LOCAL
18 _probe HAVE_IMMINTRIN_H
19 _probe HAVE__MM_CLMULEPI64_SI128
20 _probe HAVE__MM_MOVEMASK_EPI8
21 _probe HAVE___BUILTIN_ASSUME_ALIGNED
22 _probe HAVE___BUILTIN_BSWAP16
23 _probe HAVE___BUILTIN_CLZ
24
25 _probesize SIZEOF_SIZE_T
26 _probesize SIZEOF_LONG
27 _probesize SIZEOF_TIME_T