Merge pull request #138305 from obsidiansystems/cc-wrapper-mthumb-marm
cc-wrapper: Add support for -mthumb / -marm
This commit is contained in:
commit
f7af2a7c89
1 changed files with 3 additions and 0 deletions
|
@ -463,6 +463,9 @@ stdenv.mkDerivation {
|
||||||
+ optionalString (targetPlatform ? gcc.mode) ''
|
+ optionalString (targetPlatform ? gcc.mode) ''
|
||||||
echo "-mmode=${targetPlatform.gcc.mode}" >> $out/nix-support/cc-cflags-before
|
echo "-mmode=${targetPlatform.gcc.mode}" >> $out/nix-support/cc-cflags-before
|
||||||
''
|
''
|
||||||
|
+ optionalString (targetPlatform ? gcc.thumb) ''
|
||||||
|
echo "-m${if targetPlatform.gcc.thumb then "thumb" else "arm"}" >> $out/nix-support/cc-cflags-before
|
||||||
|
''
|
||||||
+ optionalString (targetPlatform ? gcc.tune &&
|
+ optionalString (targetPlatform ? gcc.tune &&
|
||||||
isGccArchSupported targetPlatform.gcc.tune) ''
|
isGccArchSupported targetPlatform.gcc.tune) ''
|
||||||
echo "-mtune=${targetPlatform.gcc.tune}" >> $out/nix-support/cc-cflags-before
|
echo "-mtune=${targetPlatform.gcc.tune}" >> $out/nix-support/cc-cflags-before
|
||||||
|
|
Loading…
Reference in a new issue