From 139b94a7fb72114c31a2a6ab3f7e6024b4a738ec Mon Sep 17 00:00:00 2001
From: Yogesh Tyagi <yogesh.tyagi@intel.com>
Date: Tue, 26 Jul 2022 15:25:10 +0800
Subject: [PATCH] Fix QA Issues

Stop ispc from inserting host file path in generated headers which leads to reproducibility problems.

Upstream-Status: Inappropriate [OE build specific]

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>

---
 src/module.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/module.cpp b/src/module.cpp
index 58a2ae83..82673052 100644
--- a/src/module.cpp
+++ b/src/module.cpp
@@ -2105,7 +2105,7 @@ bool Module::writeHeader(const char *fn) {
         perror("fopen");
         return false;
     }
-    fprintf(f, "//\n// %s\n// (Header automatically generated by the ispc compiler.)\n", fn);
+    fprintf(f, "//\n// \n// (Header automatically generated by the ispc compiler.)\n");
     fprintf(f, "// DO NOT EDIT THIS FILE.\n//\n\n");
 
     // Create a nice guard string from the filename, turning any
@@ -2219,7 +2219,7 @@ bool Module::writeDispatchHeader(DispatchHeaderInfo *DHI) {
     FILE *f = DHI->file;
 
     if (DHI->EmitFrontMatter) {
-        fprintf(f, "//\n// %s\n// (Header automatically generated by the ispc compiler.)\n", DHI->fn);
+        fprintf(f, "//\n// \n// (Header automatically generated by the ispc compiler.)\n");
         fprintf(f, "// DO NOT EDIT THIS FILE.\n//\n\n");
     }
     // Create a nice guard string from the filename, turning any
