mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
cudatoolkit: Don't barf on GCC > 4.9
Blender appears to build/run fine with GCC 5.3.
This commit is contained in:
parent
9fa5c5d461
commit
bd4720a7d6
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ let
|
|||
if [ -d "$out"/cuda-samples ]; then
|
||||
mv "$out"/cuda-samples "$out"/samples
|
||||
fi
|
||||
|
||||
# Change the #error on GCC > 4.9 to a #warning.
|
||||
sed -i $out/include/host_config.h -e 's/#error\(.*unsupported GNU version\)/#warning\1/'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue