about summary refs log tree commit diff
path: root/pkgs/development/compilers/llvm/4
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-03-07 17:38:15 -0600
committerWill Dietz <w@wdtz.org>2018-03-07 17:38:15 -0600
commit535ba5f7f7400918211936e81e522ee93925ab54 (patch)
treedfed60db96ebb3995315b64d07621104602b9b64 /pkgs/development/compilers/llvm/4
parentb778e99fc38ccaacb4b6d05db9533f46f0e0f891 (diff)
downloadnixlib-535ba5f7f7400918211936e81e522ee93925ab54.tar
nixlib-535ba5f7f7400918211936e81e522ee93925ab54.tar.gz
nixlib-535ba5f7f7400918211936e81e522ee93925ab54.tar.bz2
nixlib-535ba5f7f7400918211936e81e522ee93925ab54.tar.lz
nixlib-535ba5f7f7400918211936e81e522ee93925ab54.tar.xz
nixlib-535ba5f7f7400918211936e81e522ee93925ab54.tar.zst
nixlib-535ba5f7f7400918211936e81e522ee93925ab54.zip
lldb_4: fix w/gcc7
Same fix used in swift4, FWIW.
Diffstat (limited to 'pkgs/development/compilers/llvm/4')
-rw-r--r--pkgs/development/compilers/llvm/4/lldb.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/compilers/llvm/4/lldb.nix b/pkgs/development/compilers/llvm/4/lldb.nix
index 5ffc346a479e..325149fc19be 100644
--- a/pkgs/development/compilers/llvm/4/lldb.nix
+++ b/pkgs/development/compilers/llvm/4/lldb.nix
@@ -41,6 +41,11 @@ stdenv.mkDerivation {
     "-DLLDB_CODESIGN_IDENTITY=" # codesigning makes nondeterministic
   ];
 
+  # Add missing include to fix error when using std::bind
+  prePatch = ''
+    sed -i -e '30i#include <functional>' include/lldb/Utility/TaskPool.h
+  '';
+
   enableParallelBuilding = true;
 
   postInstall = ''