From: Yang Rong Date: Wed, 15 Jan 2014 08:31:04 +0000 (+0800) Subject: Use OCL_USE_PCH to control the using pch or not. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2462bb57a19bd45b6f4353aaeae9547e1b4a066f;p=contrib%2Fbeignet.git Use OCL_USE_PCH to control the using pch or not. Junyan has added the environment variable OCL_USE_PCH, but not using it. Enable it. Signed-off-by: Yang Rong Reviewed-by: Zhigang Gong --- diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp index c0358b3..893cda3 100644 --- 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