clang: Pass the real gcc install prefix

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-05-04 15:18:37 -04:00
parent 301d2e5431
commit c4edee4d39

View File

@ -13,6 +13,7 @@ stdenv.mkDerivation {
"-DCLANG_PATH_TO_LLVM_BUILD=${llvm}" "-DCLANG_PATH_TO_LLVM_BUILD=${llvm}"
"-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_BUILD_TYPE=Release"
"-DLLVM_TARGETS_TO_BUILD=all" "-DLLVM_TARGETS_TO_BUILD=all"
"-DGCC_INSTALL_PREFIX=${stdenv.gcc.gcc}"
] ++ stdenv.lib.optionals (stdenv.gcc.libc != null) [ ] ++ stdenv.lib.optionals (stdenv.gcc.libc != null) [
"-DC_INCLUDE_DIRS=${stdenv.gcc.libc}/include/" "-DC_INCLUDE_DIRS=${stdenv.gcc.libc}/include/"
]; ];