Compiler options support
Status: Beta
Brought to you by:
george_vv
This patch adds support for specifying OpenCL compiler options from the command-line, like e.g. the options documented in http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clBuildProgram.html
Usage examples:
clcc.exe --cloptions -DM_PI=3.14 cl_source.cl
clcc.exe --cloptions "-cl-unsafe-math-optimizations -DM_PI=3.14" cl_source.cl
This is a stripped-down and slightly reworked version of patch 3386010, where the compiler options are actually passed on to the OpenCL compiler.
Commited in r10.