cross stdenv adaptor: Support --host --build --target across the board
Packages get --host and --target by default, but can explicitly request any subset to be passed as needed. See docs for more info. rustc: Avoid hash breakage by using the old (ignored) dontSetConfigureCross when not cross building
This commit is contained in:
committed by
John Ericson
parent
9bfd03eff7
commit
594d264205
@@ -148,7 +148,7 @@ stdenv.mkDerivation rec {
|
||||
isCygwin = stdenv.cross.libc == "msvcrt";
|
||||
isDarwin = stdenv.cross.libc == "libSystem";
|
||||
in {
|
||||
dontSetConfigureCross = true;
|
||||
configurePlatforms = [];
|
||||
configureFlags = configureFlags ++ [
|
||||
#"--extra-cflags="
|
||||
#"--extra-cxxflags="
|
||||
|
||||
@@ -156,7 +156,7 @@ stdenv.mkDerivation rec {
|
||||
isCygwin = stdenv.cross.libc == "msvcrt";
|
||||
isDarwin = stdenv.cross.libc == "libSystem";
|
||||
in {
|
||||
dontSetConfigureCross = true;
|
||||
configurePlatforms = [];
|
||||
configureFlags = configureFlags ++ [
|
||||
#"--extra-cflags="
|
||||
#"--prefix="
|
||||
|
||||
Reference in New Issue
Block a user