nixpkgs/pkgs/build-support/cc-wrapper
Adam Joseph dfa3f14493 cc-wrapper: -march= is not allowed on powerpc
Gcc does not allow `-march=` on PowerPC:

  https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/RS_002f6000-and-PowerPC-Options.html#RS_002f6000-and-PowerPC-Options

Instead, `-mcpu=` should be used to set the minimum instruction set
and `-mtune=` is used to optimize instruction scheduling for a
specific processor.  Both flags take the same set of valid values,
which includes `native`.

This commit causes `isGccArchSupported` to return `false` for PowerPC
targets so we never pass an `-march=` flag, since that will always be
rejected by gcc.
2023-01-10 14:05:03 +01:00
..
add-clang-cc-cflags-before.sh cc-wrapper: Add clang specific options to clang specific file 2022-06-15 11:34:53 -04:00
add-flags.sh cc-wrapper: change cflags order from cc/crt1/libc to crt1/libc/cc 2022-02-20 10:45:45 +00:00
add-hardening.sh cc-wrapper/add-hardening.sh: always unset _FORTIFY_SOURCE before re-setting it 2022-10-01 08:30:11 +01:00
cc-wrapper.sh cc-wrapper: adding a cc-wrapper-hook to the cc-wrapper 2022-10-26 09:33:43 -07:00
default.nix cc-wrapper: -march= is not allowed on powerpc 2023-01-10 14:05:03 +01:00
fortran-hook.sh cc-wrapper: fortran: enable stackprotector on M1 2022-08-19 16:41:36 -07:00
gnat-wrapper.sh gnat: fix build 2020-09-19 20:54:27 -07:00
setup-hook.sh Revert "Merge #191724: cc-wrapper: remove duplicate include flags" 2022-10-28 10:28:12 +02:00