Use OCL_USE_PCH to control the using pch or not.
authorYang Rong <rong.r.yang@intel.com>
Wed, 15 Jan 2014 08:31:04 +0000 (16:31 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 16 Jan 2014 06:45:07 +0000 (14:45 +0800)
Junyan has added the environment variable OCL_USE_PCH, but not using it.
Enable it.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/program.cpp

index c0358b3..893cda3 100644 (file)
@@ -661,7 +661,7 @@ namespace gbe {
     FILE *clFile = fopen(clName.c_str(), "w");
     FATAL_IF(clFile == NULL, "Failed to open temporary file");
 
-    bool usePCH = true;
+    bool usePCH = OCL_USE_PCH;
     bool findPCH = false;
 
     /* Because our header file is so big, we want to avoid recompile the header from