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)
|
||||
preBuild = ''
|
||||
cmakeConfigurePhase
|
||||
'' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
||||
export GOARCH=$(go env GOHOSTARCH)
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
|
Loading…
Reference in New Issue
Block a user