[Bf-blender-cvs] [c7612d6] master: Comment out scons '-Werror=float-conversion' for Cycles for now.
Bastien Montagne
noreply at git.blender.org
Sat May 3 11:11:19 CEST 2014
Commit: c7612d68b2bcf71d39f683059811f61c15a6d4b1
Author: Bastien Montagne
Date: Sat May 3 11:08:27 2014 +0200
https://developer.blender.org/rBc7612d68b2bcf71d39f683059811f61c15a6d4b1
Comment out scons '-Werror=float-conversion' for Cycles for now.
This option is only available in gcc >= 4.9, and we do not have a fancy helper in scons
to check availability of a flag...
===================================================================
M intern/cycles/SConscript
===================================================================
diff --git a/intern/cycles/SConscript b/intern/cycles/SConscript
index 893ad09..532238b 100644
--- a/intern/cycles/SConscript
+++ b/intern/cycles/SConscript
@@ -73,8 +73,10 @@ else:
cxxflags.append('-ffast-math'.split())
# Warnings
-if env['C_COMPILER_ID'] == 'gcc':
- cxxflags.append(['-Werror=float-conversion'])
+# XXX Not supported by gcc < 4.9, since we do not have any 'supported flags' test as in cmake,
+# simpler to comment for now.
+#if env['C_COMPILER_ID'] == 'gcc':
+# cxxflags.append(['-Werror=float-conversion'])
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
incs.append(env['BF_PTHREADS_INC'])
More information about the Bf-blender-cvs
mailing list