summary refs log tree commit diff
path: root/pkgs/development/compilers/llvm/4
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2018-05-22 19:21:35 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-23 00:27:30 -0400
commit25e866a7fe36045470e27a9b320703a35266d889 (patch)
tree7ac4a419976304696b0394c52153cff83103cb83 /pkgs/development/compilers/llvm/4
parent07d73c4ab065ad0a06551b39cc6d1c7a874a6913 (diff)
downloadnixlib-25e866a7fe36045470e27a9b320703a35266d889.tar
nixlib-25e866a7fe36045470e27a9b320703a35266d889.tar.gz
nixlib-25e866a7fe36045470e27a9b320703a35266d889.tar.bz2
nixlib-25e866a7fe36045470e27a9b320703a35266d889.tar.lz
nixlib-25e866a7fe36045470e27a9b320703a35266d889.tar.xz
nixlib-25e866a7fe36045470e27a9b320703a35266d889.tar.zst
nixlib-25e866a7fe36045470e27a9b320703a35266d889.zip
treewide: Less {cc,bintools}-wrapper eta expansion
Also makes the LLVM ones more correct
Diffstat (limited to 'pkgs/development/compilers/llvm/4')
-rw-r--r--pkgs/development/compilers/llvm/4/default.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/development/compilers/llvm/4/default.nix b/pkgs/development/compilers/llvm/4/default.nix
index 562f9e3457dd..c92a1d84c0c5 100644
--- a/pkgs/development/compilers/llvm/4/default.nix
+++ b/pkgs/development/compilers/llvm/4/default.nix
@@ -1,5 +1,5 @@
 { lowPrio, newScope, stdenv, targetPlatform, cmake, libstdcxxHook
-, libxml2, python2, isl, fetchurl, overrideCC, wrapCC, ccWrapperFun
+, libxml2, python2, isl, fetchurl, overrideCC, wrapCCWith
 , darwin
 }:
 
@@ -40,17 +40,13 @@ let
 
     clang = if stdenv.cc.isGNU then self.libstdcxxClang else self.libcxxClang;
 
-    libstdcxxClang = ccWrapperFun {
+    libstdcxxClang = wrapCCWith {
       cc = self.clang-unwrapped;
-      /* FIXME is this right? */
-      inherit (stdenv.cc) bintools libc nativeTools nativeLibc;
       extraPackages = [ libstdcxxHook ];
     };
 
-    libcxxClang = ccWrapperFun {
+    libcxxClang = wrapCCWith {
       cc = self.clang-unwrapped;
-      /* FIXME is this right? */
-      inherit (stdenv.cc) bintools libc nativeTools nativeLibc;
       extraPackages = [ self.libcxx self.libcxxabi ];
     };