diff options
author | Maxime Devos <maximedevos@telenet.be> | 2023-08-21 15:59:53 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-09-08 19:12:15 +0200 |
commit | 96eda590e1eb288359532d92bbfc4795c60f3df5 (patch) | |
tree | 7f55daa264a996cdd29cba9cdb854966bf82c83e /configure.ac | |
parent | 05f44bbeb40686599827cbe0df7fcc80122fe152 (diff) | |
download | guix-96eda590e1eb288359532d92bbfc4795c60f3df5.tar.gz guix-96eda590e1eb288359532d92bbfc4795c60f3df5.zip |
lint: Check that (cc-for-target) and friends are used.
"CC=gcc" is almost always incorrect; people often just don't
notice the incorrectness because they are compiling natively.
For an exception, see tzdata.
"guix style" partially made things worse, so I partially ignored it.
* guix/lint.scm (check-compiler-for-target): New linter.
* tests/lint.scm
("compiler-for-target: unconditional CC=gcc is unacceptable")
("compiler-for-target: looks through G-expressions")
("compiler-for-target: (cc-for-target) is acceptable")
("compiler-for-target: CC=gcc is acceptable when target=#false"):
Test it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions