aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Pappacoda <andrea@pappacoda.it>2022-10-23 21:56:34 +0000
committerAndrea Pappacoda <andrea@pappacoda.it>2022-10-23 21:56:34 +0000
commit1313e6352a442bfd7483f7b6e14308f2cabdc684 (patch)
tree889ebd7622dffe957c093bfc224c3dceef67325f
parentrender: resize: do full text reflow immediately if resize-delay-ms == 0 (diff)
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).
-rwxr-xr-xpgo/pgo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgo/pgo.sh b/pgo/pgo.sh
index b2ce7fe5..2f409268 100755
--- a/pgo/pgo.sh
+++ b/pgo/pgo.sh
@@ -30,7 +30,7 @@ do_pgo=no
CFLAGS="${CFLAGS-} -O3"
case $(${CC-cc} --version) in
- *GCC*)
+ *Free\ Software\ Foundation*)
compiler=gcc
do_pgo=yes
;;