[Beignet] [PATCH] Accept and ignore -g (rather than failing)

Rebecca N. Palmer rebecca_palmer at zoho.com
Thu Feb 7 19:09:46 UTC 2019


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_palmer at 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);



More information about the Beignet mailing list