OS X linker does not like empty compilation unit by itself in a library. Scons creates one library (.a) per kernel. This fixes that
This commit is contained in:
@@ -71,4 +71,9 @@ void kernel_cpu_sse2_shader(KernelGlobals *kg, uint4 *input, float4 *output, int
|
|||||||
|
|
||||||
CCL_NAMESPACE_END
|
CCL_NAMESPACE_END
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
/* needed for some linkers in combination with scons making empty compilation unit in a library */
|
||||||
|
void __dummy_function_cycles_sse2(){}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -72,5 +72,9 @@ void kernel_cpu_sse3_shader(KernelGlobals *kg, uint4 *input, float4 *output, int
|
|||||||
}
|
}
|
||||||
|
|
||||||
CCL_NAMESPACE_END
|
CCL_NAMESPACE_END
|
||||||
|
#else
|
||||||
|
|
||||||
|
/* needed for some linkers in combination with scons making empty compilation unit in a library */
|
||||||
|
void __dummy_function_cycles_sse3(){}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -73,5 +73,9 @@ void kernel_cpu_sse41_shader(KernelGlobals *kg, uint4 *input, float4 *output, in
|
|||||||
}
|
}
|
||||||
|
|
||||||
CCL_NAMESPACE_END
|
CCL_NAMESPACE_END
|
||||||
|
#else
|
||||||
|
|
||||||
|
/* needed for some linkers in combination with scons making empty compilation unit in a library */
|
||||||
|
void __dummy_function_cycles_sse41(){}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user