Missing clBuildProgram options added
@@ -63,8 +63,8 @@ static const char cl_parameters[] =
"-g "
"-Werror ";
-static const char cl_parameters_not_yet_supported_by_clang[] =
- "-cl-strict-aliasing "
+static const char cl_parameters_supported_after_clang_3_9[] =
+ "-cl-strict-aliasing " /* deprecated after OCL1.0 */
"-cl-denorms-are-zero "
"-cl-no-signed-zeros ";
@@ -225,11 +225,16 @@ CL_API_SUFFIX__VERSION_1_0
/* the LLVM API call pushes the parameters directly to the
frontend without using -Xclang */
}
- else if (strstr (cl_parameters_not_yet_supported_by_clang, token))
+ else if (strstr (cl_parameters_supported_after_clang_3_9, token))
{
- APPEND_TO_MAIN_BUILD_LOG("Build option isnt yet supported by clang: %s\n", token);
+#ifndef LLVM_OLDER_THAN_3_9
+ /* the LLVM API call pushes the parameters directly to the
+ * frontend without using -Xclang*/
+#else
+ APPEND_TO_MAIN_BUILD_LOG("This build option is supported after clang3.9: %s\n", token);
token = strtok_r (NULL, " ", &saveptr);
continue;
+#endif
}
else
{
