Considering how hard/annoying it was for many peoples' workflow to
properly generate the macro, it will be demoted to conditionally
available with follow-up commits.
v2: Kill off gracious blank line (Vedran).
Cc: mesa-stable@lists.freedesktop.org
Cc: Vedran Miletić <vedran@miletic.net>
Cc: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (v1)
Reviewed-by: Vedran Miletić <vedran@miletic.net>
case CL_DEVICE_VERSION:
buf.as_string() = "OpenCL 1.1 Mesa " PACKAGE_VERSION
- " (" MESA_GIT_SHA1 ")";
+#ifdef MESA_GIT_SHA1
+ " (" MESA_GIT_SHA1 ")"
+#endif
+ ;
break;
case CL_DEVICE_EXTENSIONS:
case CL_PLATFORM_VERSION:
buf.as_string() = "OpenCL 1.1 Mesa " PACKAGE_VERSION
- " (" MESA_GIT_SHA1 ")";
+#ifdef MESA_GIT_SHA1
+ " (" MESA_GIT_SHA1 ")"
+#endif
+ ;
break;
case CL_PLATFORM_NAME: