nixpkgs/pkgs/test/cc-wrapper
Artturin e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
..
atomics.cc tests.cc-wrapper: add atomics test 2023-11-16 00:23:56 +02:00
cc-main.c
cflags-main.c
core-foundation-main.c
cxx-main.cc
default.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
foo.c
fortify1-example.c cc-wrapper, binutils-wrapper: add tests hardening-flags-handling 2023-09-02 15:01:54 +01:00
fortify2-example.c cc-wrapper, binutils-wrapper: add tests hardening-flags-handling 2023-09-02 15:01:54 +01:00
fortify3-example.c cc-wrapper, binutils-wrapper: add tests hardening-flags-handling 2023-09-02 15:01:54 +01:00
hardening.nix cc-wrapper hardeningFlags tests: fix stdenvUnsupport-based tests 2024-07-15 19:28:11 +01:00
include-cxxabi.cc tests.cc-wrapper.supported: add test for cxxabi header 2023-09-18 06:43:36 +05:30
ldflags-main.c
multilib.nix
nostdinc-main.c
sanitizers.c
stdio.h