neuron: fix on clang 3.8 and above
This is in preparation for upgrading Darwin stdenv to LLVM 4
This commit is contained in:
parent
93005b82dc
commit
7ad3fd7ca7
@ -25,6 +25,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = (stdenv.lib.optional (stdenv.isDarwin) [ ./neuron-carbon-disable.patch ]);
|
patches = (stdenv.lib.optional (stdenv.isDarwin) [ ./neuron-carbon-disable.patch ]);
|
||||||
|
|
||||||
|
# With LLVM 3.8 and above, clang (really libc++) gets upset if you attempt to redefine these...
|
||||||
|
postPatch = stdenv.lib.optionalString stdenv.cc.isClang ''
|
||||||
|
substituteInPlace src/gnu/neuron_gnu_builtin.h \
|
||||||
|
--replace 'double abs(double arg);' "" \
|
||||||
|
--replace 'float abs(float arg);' "" \
|
||||||
|
--replace 'short abs(short arg);' "" \
|
||||||
|
--replace 'long abs(long arg);' ""
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
## neuron install by default everything under prefix/${host_arch}/*
|
## neuron install by default everything under prefix/${host_arch}/*
|
||||||
|
Loading…
Reference in New Issue
Block a user