boringssl: support cross compile
set GOARCH to allow codegen programs to run on the buildPlatform
This commit is contained in:
parent
62595afea7
commit
4d32ee26c5
|
@ -26,6 +26,8 @@ buildGoModule {
|
||||||
# (if we use postConfigure then cmake will loop runHook postConfigure)
|
# (if we use postConfigure then cmake will loop runHook postConfigure)
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
cmakeConfigurePhase
|
cmakeConfigurePhase
|
||||||
|
'' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
||||||
|
export GOARCH=$(go env GOHOSTARCH)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
Loading…
Reference in a new issue