diff options
| author | Alyssa Ross <hi@alyssa.is> | 2024-06-04 20:06:58 +0100 |
|---|---|---|
| committer | Alyssa Ross <hi@alyssa.is> | 2024-06-15 08:02:29 +0200 |
| commit | 6f756b40658650d2b5e7c9a69c98f8f140e8a3b7 (patch) | |
| tree | 2dfacf4ff575d25aaf87707eaeb254529984ebf7 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | eb54b641875c75b3499f5582134521d67af53732 (diff) | |
clang: don't set machine flags for overridden target
We already did this for -march in 12b0e8ac74f8 ("clang: don't set
-march for overridden target"), but it should have been done for all
machine flags, for the same reason.
Example bug this fixes:
nix-shell -E '
with import ./. {
crossSystem = {
system = "powerpc64le-linux";
gcc.cpu = "power10";
};
};
clangStdenv.mkDerivation { name = "test"; }
' --run '$CC -target wasm32-unknown-unknown -c /dev/null'
Which previously failed with:
clang: error: unsupported option '-mcpu=' for target 'wasm32-unknown-unknown'
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
