mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04:00
build: fix GCC detection in pgo.sh
On my system, GCC doesn't output its name when passing the --version
flag:
$ cc --version
cc (Debian 12.2.0-3) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
As the Free Software Foundation is unlikely to write another compiler, I
think that searching for the foundation's name instead of GCC is a good
enough fix (and I'm almost sure we wouldn't be the first ones to do so).
This commit is contained in:
parent
59c9dfe109
commit
1313e6352a
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ do_pgo=no
|
||||||
CFLAGS="${CFLAGS-} -O3"
|
CFLAGS="${CFLAGS-} -O3"
|
||||||
|
|
||||||
case $(${CC-cc} --version) in
|
case $(${CC-cc} --version) in
|
||||||
*GCC*)
|
*Free\ Software\ Foundation*)
|
||||||
compiler=gcc
|
compiler=gcc
|
||||||
do_pgo=yes
|
do_pgo=yes
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue