f2004e6287
Forgot to adjust default so abi with explicit float attr would be used.
14 lines
434 B
Nix
14 lines
434 B
Nix
{ lib, targetPlatform }:
|
|
|
|
let
|
|
p = targetPlatform.platform.gcc or {}
|
|
// targetPlatform.parsed.abi;
|
|
in lib.concatLists [
|
|
(lib.optional (p ? arch) "--with-arch=${p.arch}")
|
|
(lib.optional (p ? cpu) "--with-cpu=${p.cpu}")
|
|
(lib.optional (p ? abi) "--with-abi=${p.abi}")
|
|
(lib.optional (p ? fpu) "--with-fpu=${p.fpu}")
|
|
(lib.optional (p ? float) "--with-float=${p.float}")
|
|
(lib.optional (p ? mode) "--with-mode=${p.mode}")
|
|
]
|