diff options
| author | Alba Mendez <me@alba.sh> | 2025-03-27 17:38:51 +0100 |
|---|---|---|
| committer | Alyssa Ross <hi@alyssa.is> | 2025-03-28 10:49:11 +0100 |
| commit | 923d687f99047e902012db0ffa27563c1c1c7f85 (patch) | |
| tree | 4c40294fd9b915f71c8b1044aaaebaa82e9e93ac /pkgs/development/python-modules/rangehttpserver | |
| parent | 4ab72ac13e1a9952d686a6cb080a123e9506b7ac (diff) | |
cc-wrapper: keep local cflags if the same target is passed
12b0e8a/6f756b4 work around clang errors when a
nix-wrapped compiler is used like a multi-target compiler.
it does so by dropping the machineFlags whenever
-target/--target is found in the arguments.
however this breaks compiler-rt, which is designed to
acommodate multi-target builds and always passes `--target`.
in its packaging we make sure to only build it for the target
we need, essentially disabling the multi-target aspect,
but because it still passes --target, the machineFlags are
dropped and compiler-rt could end up being for an invalid
ABI, producing an unusable stdenv.cc.
we could manually pass machineFlags to compiler-rt's
cmake build, but IMO it makes more sense to tolerate
--target arguments whose value coincides with the wrapper's,
keeping the machineFlags in this case.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
