cudatoolkit: Don't barf on GCC > 4.9

Blender appears to build/run fine with GCC 5.3.
This commit is contained in:
Eelco Dolstra 2016-04-08 22:21:47 +02:00
parent 9fa5c5d461
commit bd4720a7d6

View File

@ -65,6 +65,9 @@ let
if [ -d "$out"/cuda-samples ]; then if [ -d "$out"/cuda-samples ]; then
mv "$out"/cuda-samples "$out"/samples mv "$out"/cuda-samples "$out"/samples
fi 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 = { meta = {