OSX/scons: refine oslc compile workaround
authorJens Verwiebe <info@jensverwiebe.de>
Mon, 19 Nov 2012 11:46:55 +0000 (11:46 +0000)
committerJens Verwiebe <info@jensverwiebe.de>
Mon, 19 Nov 2012 11:46:55 +0000 (11:46 +0000)
intern/cycles/kernel/shaders/SConscript

index 1d446205d925fa144d1395acbe22a81275071f74..513bef9605af67d073d4e5f6b54cf1490701be4b 100644 (file)
@@ -15,7 +15,7 @@ if env['WITH_BF_CYCLES_OSL']:
 
     # osl compiler info
     if env['OURPLATFORM']=='darwin':
-        osl_compiler = '../lib/darwin-9.x.universal/osl/bin/oslc' # temporary hack to get the leading "#" away that breaks shadercompile
+        osl_compiler = env['LCGDIR'][1:] + '/osl/bin/oslc' # get the leading "#" away that breaks shadercompile
     else:
         osl_compiler = env['BF_OSL_COMPILER']