[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_PROG_CC: how to distinguish clang from gcc?
From: |
Sébastien Hinderer |
Subject: |
Re: AC_PROG_CC: how to distinguish clang from gcc? |
Date: |
Mon, 8 Feb 2021 08:41:15 +0100 |
Hello David and all,
David A. Wheeler (2021/02/05 11:40 -0500):
> I would *discourage* trying to figure out if a C compiler is gcc or clang.
> Instead, create separate detectors for whatever you’re looking for.
>
> The gcc & clang groups coordinate with each other; they try to provide the
> same
> flags & API for the same functionality, and occasionally copy from each other.
> So trying to detect “do this if GCC” is generally wrong; clang may have that
> interface & functionality
> when someone compiles the code.
That was a good advice. Thanks!
Sébastien.
- Re: Weird behaviour about system types, (continued)
- Re: Weird behaviour about system types, Nick Bowler, 2021/02/04
- Re: Weird behaviour about system types, Sébastien Hinderer, 2021/02/04
- Re: Weird behaviour about system types, Nick Bowler, 2021/02/04
- Re: Weird behaviour about system types, Sébastien Hinderer, 2021/02/05
- AC_PROG_CC: how to distinguish clnag from gcc?, Sébastien Hinderer, 2021/02/05
- Re: AC_PROG_CC: how to distinguish clnag from gcc?, Todd C. Miller, 2021/02/05
- Re: AC_PROG_CC: how to distinguish clnag from gcc?, Sébastien Hinderer, 2021/02/05
- Re: AC_PROG_CC: how to distinguish clnag from gcc?, David A . Wheeler, 2021/02/05
- Re: AC_PROG_CC: how to distinguish clang from gcc?, David A. Wheeler, 2021/02/05
- Re: AC_PROG_CC: how to distinguish clang from gcc?, Russ Allbery, 2021/02/05
- Re: AC_PROG_CC: how to distinguish clang from gcc?,
Sébastien Hinderer <=
- Re: AC_PROG_CC: how to distinguish clnag from gcc?, Russ Allbery, 2021/02/05
- Re: AC_PROG_CC: how to distinguish clnag from gcc?, Sébastien Hinderer, 2021/02/08
- Re: AC_PROG_CC: how to distinguish clnag from gcc?, Russ Allbery, 2021/02/08
- Re: AC_PROG_CC: how to distinguish clnag from gcc?, Sébastien Hinderer, 2021/02/09
- Re: AC_PROG_CC: how to distinguish clnag from gcc?, Paul Eggert, 2021/02/08