SCons: make OSL linking work on windows, and fix OSL compiler path issue to
[blender.git] / intern / cycles / kernel / shaders / SConscript
index 513bef9605af67d073d4e5f6b54cf1490701be4b..f1c30395b70a9d4c20a252bff1071431711283d3 100644 (file)
@@ -13,11 +13,8 @@ oso_files = []
 if env['WITH_BF_CYCLES_OSL']:
     shaders = env.Clone()
 
-    # osl compiler info
-    if env['OURPLATFORM']=='darwin':
-        osl_compiler = env['LCGDIR'][1:] + '/osl/bin/oslc' # get the leading "#" away that breaks shadercompile
-    else:
-        osl_compiler = env['BF_OSL_COMPILER']
+    # osl compiler
+    osl_compiler = env._canonicalize(env.subst(env['BF_OSL_COMPILER']))
 
     # build directory
     root_build_dir = normpath(env['BF_BUILDDIR'])