From 9aafec1ce1bfdb815c2ed6fe2da83f9451fde3e4 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sat, 21 Nov 2015 21:33:08 +0500 Subject: [PATCH] Cycles: Avoid multiple spaces in OpenCL build options This should solve some compilation errors with compilation on OSX. --- intern/cycles/device/device_opencl.cpp | 6 +++--- 1 file 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);