From 0e225c0e37175ed450525dd6c39c3746b6a0268c Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 4 Feb 2015 11:30:25 -0500 Subject: [PATCH] llvm-3.5: Don't try to use libc++ on linux --- pkgs/development/compilers/llvm/3.5/llvm.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/llvm/3.5/llvm.nix b/pkgs/development/compilers/llvm/3.5/llvm.nix index c1b2d69c5da..00de67c6052 100644 --- a/pkgs/development/compilers/llvm/3.5/llvm.nix +++ b/pkgs/development/compilers/llvm/3.5/llvm.nix @@ -42,9 +42,11 @@ in stdenv.mkDerivation rec { "-DLLVM_BUILD_TESTS=ON" "-DLLVM_ENABLE_FFI=ON" "-DLLVM_BINUTILS_INCDIR=${binutils}/include" - "-DCMAKE_CXX_FLAGS=-stdlib=libc++" ] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON" - ++ stdenv.lib.optional ( isDarwin) "-DCAN_TARGET_i386=false"; + ++ stdenv.lib.optionals ( isDarwin) [ + "-DCMAKE_CXX_FLAGS=-stdlib=libc++" + "-DCAN_TARGET_i386=false" + ]; postBuild = '' rm -fR $out