From 64f0d7431914b55b2fcf29a9301b886f33560f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 27 Jan 2010 16:29:11 +0000 Subject: [PATCH] Fixing the gcc/gcc-wrapper so 'ghdl' gets the proper wrapper (langVhdl = true, from gcc). svn path=/nixpkgs/branches/stdenv-updates/; revision=19714 --- pkgs/build-support/gcc-wrapper/default.nix | 6 +++--- pkgs/development/compilers/gcc-4.3/default.nix | 3 ++- pkgs/development/compilers/gcc-4.4/default.nix | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/build-support/gcc-wrapper/default.nix b/pkgs/build-support/gcc-wrapper/default.nix index 87557bb4779..c97fd4eb495 100644 --- a/pkgs/build-support/gcc-wrapper/default.nix +++ b/pkgs/build-support/gcc-wrapper/default.nix @@ -15,7 +15,7 @@ assert !nativeTools -> gcc != null && binutils != null && coreutils != null; assert !nativeLibc -> libc != null; # For ghdl (the vhdl language provider to gcc) we need zlib in the wrapper -assert (gcc != null && gcc ? langVhdl) -> zlib != null; +assert (gcc != null && gcc ? langVhdl && gcc.langVhdl) -> zlib != null; let @@ -47,8 +47,8 @@ stdenv.mkDerivation { langC = if nativeTools then true else gcc.langC; langCC = if nativeTools then true else gcc.langCC; langFortran = if nativeTools then false else gcc ? langFortran; - langAda = if nativeTools then false else gcc ? langAda; - langVhdl = if nativeTools then false else gcc ? langVhdl; + langAda = if nativeTools then false else gcc ? langAda && gcc.langAda; + langVhdl = if nativeTools then false else gcc ? langVhdl && gcc.langVhdl; zlib = if (gcc != null && gcc ? langVhdl) then zlib else null; shell = if shell == "" then stdenv.shell else shell; diff --git a/pkgs/development/compilers/gcc-4.3/default.nix b/pkgs/development/compilers/gcc-4.3/default.nix index ca3577cab05..73caa156bd0 100644 --- a/pkgs/development/compilers/gcc-4.3/default.nix +++ b/pkgs/development/compilers/gcc-4.3/default.nix @@ -124,7 +124,8 @@ stdenv.mkDerivation ({ inherit gmp mpfr; - passthru = { inherit langC langCC langFortran langTreelang enableMultilib; }; + passthru = { inherit langC langCC langFortran langVhdl langTreelang + enableMultilib; }; meta = { homepage = "http://gcc.gnu.org/"; diff --git a/pkgs/development/compilers/gcc-4.4/default.nix b/pkgs/development/compilers/gcc-4.4/default.nix index 36b4440cb27..86ac3c189c6 100644 --- a/pkgs/development/compilers/gcc-4.4/default.nix +++ b/pkgs/development/compilers/gcc-4.4/default.nix @@ -184,7 +184,8 @@ stdenv.mkDerivation ({ ++ optionals javaAwtGtk [ gmp mpfr ]))); - passthru = { inherit langC langCC langAda langFortran langTreelang enableMultilib; }; + passthru = { inherit langC langCC langAda langFortran langTreelang langVhdl + enableMultilib; }; meta = { homepage = http://gcc.gnu.org/;