beignet-1.3.2-accept-ignore--g.patch 667 B

12345678910111213141516171819202122
  1. Description: Don't error out when -g is passed
  2. Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
  3. Bug-Debian: https://bugs.debian.org/881054
  4. Forwarded: https://lists.freedesktop.org/archives/beignet/2019-February/009228.html
  5. --- a/backend/src/backend/program.cpp
  6. +++ b/backend/src/backend/program.cpp
  7. @@ -985,6 +985,12 @@ EXTEND_QUOTE:
  8. continue; // Don't push this str back; ignore it.
  9. }
  10. + if(str == "-g") {
  11. + // The OpenCL 2.0 standard requires accepting -g,
  12. + // but does not require that it actually does anything
  13. + continue;
  14. + }
  15. +
  16. clOpt.push_back(str);
  17. }
  18. free(c_str);