Maxime Devos 96eda590e1
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>
2023-09-08 19:12:15 +02:00
..
2022-05-22 01:07:52 +02:00
2022-11-11 23:17:42 +01:00
2021-09-28 22:00:47 +02:00
2022-11-11 23:17:42 +01:00
2023-06-18 23:44:29 +02:00
2023-06-09 14:19:14 +02:00
2021-12-23 10:54:00 +01:00
2023-07-18 16:56:06 -04:00
2022-09-29 22:59:48 +02:00
2023-02-19 21:13:23 -05:00
2023-05-18 20:01:32 +02:00