Passing -g through to LLVM fails the build, which violates the OpenCL 2.0 standard, and breaks at least clblas stable: https://bugs.debian.org/881054

Signed-off-by: Rebecca N. Palmer <rebecca_pal...@zoho.com>

--- a/backend/src/backend/program.cpp
+++ b/backend/src/backend/program.cpp
@@ -985,6 +985,12 @@ EXTEND_QUOTE:
           continue; // Don't push this str back; ignore it.
         }

+        if(str == "-g") {
+            // The OpenCL 2.0 standard requires accepting -g,
+            // but does not require that it actually does anything
+            continue;
+        }
+
         clOpt.push_back(str);
       }
       free(c_str);

_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to