diff options
author | Dan Peebles <pumpkin@me.com> | 2016-10-10 09:50:25 -0400 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2016-10-12 00:08:13 -0400 |
commit | d8a0307a5d36551c641578a3bf1a7d29103df511 (patch) | |
tree | 672e5fcbc1d77bc1f0a7addbcf9815c22567bf4d /pkgs/development/compilers/llvm/3.7/llvm.nix | |
parent | 7098404505003887b62cdee10ee74dfa56ead741 (diff) | |
download | nixpkgs-d8a0307a5d36551c641578a3bf1a7d29103df511.tar nixpkgs-d8a0307a5d36551c641578a3bf1a7d29103df511.tar.gz nixpkgs-d8a0307a5d36551c641578a3bf1a7d29103df511.tar.bz2 nixpkgs-d8a0307a5d36551c641578a3bf1a7d29103df511.tar.lz nixpkgs-d8a0307a5d36551c641578a3bf1a7d29103df511.tar.xz nixpkgs-d8a0307a5d36551c641578a3bf1a7d29103df511.tar.zst nixpkgs-d8a0307a5d36551c641578a3bf1a7d29103df511.zip |
[darwin.stdenv] Fix to work on Sierra
This reinstates the libSystem selective symbol export machinery we used to have, but locks it to the symbols that were present in 10.11 and skips the actual compiled code we put into that library in favor of the system initialization code. That should make it more stable and less likely to do weird stuff than the last time we did this.
Diffstat (limited to 'pkgs/development/compilers/llvm/3.7/llvm.nix')
-rw-r--r-- | pkgs/development/compilers/llvm/3.7/llvm.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/compilers/llvm/3.7/llvm.nix b/pkgs/development/compilers/llvm/3.7/llvm.nix index cc65c69927c..ae9ba62a04c 100644 --- a/pkgs/development/compilers/llvm/3.7/llvm.nix +++ b/pkgs/development/compilers/llvm/3.7/llvm.nix @@ -35,6 +35,18 @@ in stdenv.mkDerivation rec { propagatedBuildInputs = [ ncurses zlib ]; + # The goal here is to disable LLVM bindings (currently go and ocaml) regardless + # of whether the impure CMake search sheananigans find the compilers in global + # paths. This mostly exists because sandbox builds don't work very well on Darwin + # and sometimes you get weird behavior if CMake finds go in your system path. + # This would be far prettier if there were a CMake option to just disable bindings + # but from what I can tell, there isn't such a thing. The file in question only + # contains `if(WIN32)` conditions to check whether to disable bindings, so making + # those always succeed has the net effect of disabling all bindings. + prePatch = '' + substituteInPlace cmake/config-ix.cmake --replace "if(WIN32)" "if(1)" + ''; + # hacky fix: created binaries need to be run before installation preBuild = '' mkdir -p $out/ |