File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 168
168
169
169
no_msa=0
170
170
if [ " $architecture " = " mips" ] || [ " $architecture " = " mips64" ]; then
171
- tmpd=" $( mktemp -d) "
171
+ tmpd=$( mktemp -d 2> /dev/null || mktemp -d -t ' OBC ' )
172
172
tmpf=" $tmpd /a.c"
173
173
code=' "addvi.b $w0, $w1, 1"'
174
174
msa_flags=' -mmsa -mfp64 -mload-store-pairs'
208
208
209
209
no_avx512=0
210
210
if [ " $architecture " = " x86" ] || [ " $architecture " = " x86_64" ]; then
211
- tmpd=` mktemp -d`
211
+ tmpd=$( mktemp -d 2> /dev/null || mktemp -d -t ' OBC ' )
212
212
tmpf=" $tmpd /a.c"
213
213
code=' "vbroadcastss -4 * 4(%rsi), %zmm2"'
214
214
printf " #include <immintrin.h>\n\nint main(void){ __asm__ volatile(%s); }\n" " $code " >> " $tmpf "
229
229
230
230
no_rv64gv=0
231
231
if [ " $architecture " = " riscv64" ]; then
232
- tmpd=` mktemp -d`
232
+ tmpd=$( mktemp -d 2> /dev/null || mktemp -d -t ' OBC ' )
233
233
tmpf=" $tmpd /a.c"
234
234
code=' "vsetvli zero, zero, e8, m1\n"'
235
235
printf " int main(void){ __asm__ volatile(%s); }\n" " $code " >> " $tmpf "
245
245
246
246
no_sve=0
247
247
if [ " $architecture " = " arm64" ]; then
248
- tmpd=` mktemp -d`
248
+ tmpd=$( mktemp -d 2> /dev/null || mktemp -d -t ' OBC ' )
249
249
tmpf=" $tmpd /a.c"
250
250
printf " #include <arm_sve.h>\n\n int main(void){}\n" >> " $tmpf "
251
251
args=" -march=armv8-a+sve -c -o $tmpf .o $tmpf "
261
261
c11_atomics=0
262
262
case " $data " in
263
263
* HAVE_C11* )
264
- tmpd=` mktemp -d`
264
+ tmpd=$( mktemp -d 2> /dev/null || mktemp -d -t ' OBC ' )
265
265
tmpf=" $tmpd /a.c"
266
266
printf " #include <stdatomic.h>\nint main(void){}\n" >> " $tmpf "
267
267
args=" -c -o $tmpf .o $tmpf "
You can’t perform that action at this time.
0 commit comments