projects
/
contrib
/
beignet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0c2272
)
Use OCL_USE_PCH to control the using pch or not.
author
Yang Rong
<rong.r.yang@intel.com>
Wed, 15 Jan 2014 08:31:04 +0000
(16:31 +0800)
committer
Zhigang 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
patch
|
blob
|
history
diff --git
a/backend/src/backend/program.cpp
b/backend/src/backend/program.cpp
index
c0358b3
..
893cda3
100644
(file)
--- a/
backend/src/backend/program.cpp
+++ b/
backend/src/backend/program.cpp
@@
-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