Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-11-21 19:33:08 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-11-21 19:33:08 +0300
commit9aafec1ce1bfdb815c2ed6fe2da83f9451fde3e4 (patch)
tree240a4545f21ecf54718b4cd640891afd3f84f5e1 /intern/cycles/device/device_opencl.cpp
parent48f298f09dbe7819e0a2a5530be7891507824005 (diff)
Cycles: Avoid multiple spaces in OpenCL build options
This should solve some compilation errors with compilation on OSX.
Diffstat (limited to 'intern/cycles/device/device_opencl.cpp')
-rw-r--r--intern/cycles/device/device_opencl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index d6b1ab38bd0..0db11e07c8b 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -1385,7 +1385,7 @@ public:
protected:
string kernel_build_options(const string *debug_src = NULL)
{
- string build_options = " -cl-fast-relaxed-math ";
+ string build_options = "-cl-fast-relaxed-math ";
if(platform_name == "NVIDIA CUDA") {
build_options += "-D__KERNEL_OPENCL_NVIDIA__ "
@@ -1555,9 +1555,9 @@ protected:
{
string build_options = "";
if(requested_features.experimental) {
- build_options += " -D__KERNEL_EXPERIMENTAL__";
+ build_options += "-D__KERNEL_EXPERIMENTAL__ ";
}
- build_options += " -D__NODES_MAX_GROUP__=" +
+ build_options += "-D__NODES_MAX_GROUP__=" +
string_printf("%d", requested_features.max_nodes_group);
build_options += " -D__NODES_FEATURES__=" +
string_printf("%d", requested_features.nodes_features);