diff options
| author | Andrea Pappacoda <andrea@pappacoda.it> | 2022-10-23 21:56:34 +0000 |
|---|---|---|
| committer | Andrea Pappacoda <andrea@pappacoda.it> | 2022-10-23 21:56:34 +0000 |
| commit | 1313e6352a442bfd7483f7b6e14308f2cabdc684 (patch) | |
| tree | 889ebd7622dffe957c093bfc224c3dceef67325f | |
| parent | render: 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-x | pgo/pgo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ do_pgo=no CFLAGS="${CFLAGS-} -O3" case $(${CC-cc} --version) in - *GCC*) + *Free\ Software\ Foundation*) compiler=gcc do_pgo=yes ;; |
