Make distinction between CC and CXX in the testsuite. (#16434)

Clang makes a distinction between clang and clang++. In particular, clang++ will give a warning when it is passed `.c` source files; and the extra output warning text means that dmd testsuite output checking fails. The warning can be silenced (-Wno-deprecated) but then other tests will fail because `#ifdef __cplusplus` will be true, leading to header file import issues.
This commit is contained in:
Johan Engelen 2024-05-03 01:30:55 +02:00 committed by GitHub
parent ebe8611b12
commit afc38e9dca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 45 additions and 23 deletions

View file

@ -50,7 +50,7 @@ private alias requiredEnvVars = AliasSeq!(
"BUILD"
);
private alias optionalEnvVars = AliasSeq!(
"CC", "PIC_FLAG"
"CC", "CXX", "PIC_FLAG"
);
private alias allVars = AliasSeq!(
requiredEnvVars,