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 168168
169169no_msa=0
170170if [ " $architecture " = " mips" ] || [ " $architecture " = " mips64" ]; then
171- tmpd=" $( mktemp -d) "
171+ tmpd=$( mktemp -d 2> /dev/null || mktemp -d -t ' OBC ' )
172172 tmpf=" $tmpd /a.c"
173173 code=' "addvi.b $w0, $w1, 1"'
174174 msa_flags=' -mmsa -mfp64 -mload-store-pairs'
208208
209209no_avx512=0
210210if [ " $architecture " = " x86" ] || [ " $architecture " = " x86_64" ]; then
211- tmpd=` mktemp -d`
211+ tmpd=$( mktemp -d 2> /dev/null || mktemp -d -t ' OBC ' )
212212 tmpf=" $tmpd /a.c"
213213 code=' "vbroadcastss -4 * 4(%rsi), %zmm2"'
214214 printf " #include <immintrin.h>\n\nint main(void){ __asm__ volatile(%s); }\n" " $code " >> " $tmpf "
229229
230230no_rv64gv=0
231231if [ " $architecture " = " riscv64" ]; then
232- tmpd=` mktemp -d`
232+ tmpd=$( mktemp -d 2> /dev/null || mktemp -d -t ' OBC ' )
233233 tmpf=" $tmpd /a.c"
234234 code=' "vsetvli zero, zero, e8, m1\n"'
235235 printf " int main(void){ __asm__ volatile(%s); }\n" " $code " >> " $tmpf "
245245
246246no_sve=0
247247if [ " $architecture " = " arm64" ]; then
248- tmpd=` mktemp -d`
248+ tmpd=$( mktemp -d 2> /dev/null || mktemp -d -t ' OBC ' )
249249 tmpf=" $tmpd /a.c"
250250 printf " #include <arm_sve.h>\n\n int main(void){}\n" >> " $tmpf "
251251 args=" -march=armv8-a+sve -c -o $tmpf .o $tmpf "
261261c11_atomics=0
262262case " $data " in
263263 * HAVE_C11* )
264- tmpd=` mktemp -d`
264+ tmpd=$( mktemp -d 2> /dev/null || mktemp -d -t ' OBC ' )
265265 tmpf=" $tmpd /a.c"
266266 printf " #include <stdatomic.h>\nint main(void){}\n" >> " $tmpf "
267267 args=" -c -o $tmpf .o $tmpf "
You can’t perform that action at this time.
0 commit comments