0001-Fix-QA-Issues.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 139b94a7fb72114c31a2a6ab3f7e6024b4a738ec Mon Sep 17 00:00:00 2001
  2. From: Yogesh Tyagi <yogesh.tyagi@intel.com>
  3. Date: Tue, 26 Jul 2022 15:25:10 +0800
  4. Subject: [PATCH] Fix QA Issues
  5. Stop ispc from inserting host file path in generated headers which leads to reproducibility problems.
  6. Upstream-Status: Inappropriate [OE build specific]
  7. Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
  8. ---
  9. src/module.cpp | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. diff --git a/src/module.cpp b/src/module.cpp
  12. index 58a2ae83..82673052 100644
  13. --- a/src/module.cpp
  14. +++ b/src/module.cpp
  15. @@ -2105,7 +2105,7 @@ bool Module::writeHeader(const char *fn) {
  16. perror("fopen");
  17. return false;
  18. }
  19. - fprintf(f, "//\n// %s\n// (Header automatically generated by the ispc compiler.)\n", fn);
  20. + fprintf(f, "//\n// \n// (Header automatically generated by the ispc compiler.)\n");
  21. fprintf(f, "// DO NOT EDIT THIS FILE.\n//\n\n");
  22. // Create a nice guard string from the filename, turning any
  23. @@ -2219,7 +2219,7 @@ bool Module::writeDispatchHeader(DispatchHeaderInfo *DHI) {
  24. FILE *f = DHI->file;
  25. if (DHI->EmitFrontMatter) {
  26. - fprintf(f, "//\n// %s\n// (Header automatically generated by the ispc compiler.)\n", DHI->fn);
  27. + fprintf(f, "//\n// \n// (Header automatically generated by the ispc compiler.)\n");
  28. fprintf(f, "// DO NOT EDIT THIS FILE.\n//\n\n");
  29. }
  30. // Create a nice guard string from the filename, turning any