Skip to content

Commit 71c6016

Browse files
committed
Fix f_check detection of LLVM 21 flang
The check for GCC is confused by the GNU-stack in ``` .file "FIRModule" .text .globl zhoge_ .p2align 4 .type zhoge_,@function zhoge_: xorps %xmm0, %xmm0 xorps %xmm1, %xmm1 retq .Lfunc_end0: .size zhoge_, .Lfunc_end0-zhoge_ .ident "flang version 21.1.5" .section ".note.GNU-stack","",@progbits ``` And displays: ``` ./f_check: line 102: [: : integer expression expected ``` Since it expects a string with GCC anyway, better to only match GCC and not GNU.
1 parent f6df9be commit 71c6016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

f_check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ else
9292
vendor=FLANG
9393
openmp='-fopenmp'
9494
;;
95-
*GNU*|*GCC*)
95+
*GCC*)
9696

9797
v="${data#*GCC: *\) }"
9898
v="${v%%\"*}"

0 commit comments

Comments
 (0)