crossStdenv on iphone: Just get info from targetPlatform
This commit is contained in:
parent
bef5278664
commit
db5a921945
@ -6,6 +6,7 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, coreutils
|
, coreutils
|
||||||
, gnugrep
|
, gnugrep
|
||||||
|
, targetPlatform
|
||||||
}:
|
}:
|
||||||
|
|
||||||
/* As of this writing, known-good prefix/arch/simulator triples:
|
/* As of this writing, known-good prefix/arch/simulator triples:
|
||||||
@ -15,7 +16,12 @@
|
|||||||
* x86_64-apple-darwin14 | x86_64 | true
|
* x86_64-apple-darwin14 | x86_64 | true
|
||||||
*/
|
*/
|
||||||
|
|
||||||
{ prefix, arch, simulator ? false }: let
|
let
|
||||||
|
|
||||||
|
prefix = targetPlatform.config;
|
||||||
|
inherit (targetPlatform) arch;
|
||||||
|
simulator = targetPlatform.isiPhoneSimulator or false;
|
||||||
|
|
||||||
sdkType = if simulator then "Simulator" else "OS";
|
sdkType = if simulator then "Simulator" else "OS";
|
||||||
|
|
||||||
sdkVer = "10.2";
|
sdkVer = "10.2";
|
||||||
|
@ -35,11 +35,7 @@ in bootStages ++ [
|
|||||||
selfBuild = false;
|
selfBuild = false;
|
||||||
stdenv = if crossSystem.useiOSCross or false
|
stdenv = if crossSystem.useiOSCross or false
|
||||||
then let
|
then let
|
||||||
inherit (buildPackages.darwin.ios-cross {
|
inherit (buildPackages.darwin.ios-cross) cc binutils;
|
||||||
prefix = crossSystem.config;
|
|
||||||
inherit (crossSystem) arch;
|
|
||||||
simulator = crossSystem.isiPhoneSimulator or false; })
|
|
||||||
cc binutils;
|
|
||||||
in buildPackages.makeStdenvCross
|
in buildPackages.makeStdenvCross
|
||||||
buildPackages.stdenv crossSystem
|
buildPackages.stdenv crossSystem
|
||||||
binutils cc
|
binutils cc
|
||||||
|
Loading…
Reference in New Issue
Block a user