tests.cc-wrapper: show more prominently what cc is being tested

Show what libc is used, otherwise there's indication what libc is being
used. Ex in gccMultiStdenv.
This commit is contained in:
Artturin 2023-09-07 04:31:26 +03:00
parent 8d650ed229
commit 1b6c3aed63

View File

@ -9,10 +9,14 @@ let
);
staticLibc = lib.optionalString (stdenv.hostPlatform.libc == "glibc") "-L ${glibc.static}/lib";
emulator = stdenv.hostPlatform.emulator buildPackages;
libcxxStdenvSuffix = lib.optionalString (stdenv.cc.libcxx != null) "-libcxx";
in stdenv.mkDerivation {
name = "cc-wrapper-test";
pname = "cc-wrapper-test-${stdenv.cc.cc.pname}${libcxxStdenvSuffix}";
version = stdenv.cc.version;
buildCommand = ''
echo "Testing: ${stdenv.cc.name}" >&2
echo "With libc: ${stdenv.cc.libc.name}" >&2
set -o pipefail
NIX_DEBUG=1 $CC -v