[06/10] Android: disable pch in android.

Submitted by Yang, Rong R on May 19, 2016, 8:37 a.m.

Details

Message ID 1463647036-25545-6-git-send-email-rong.r.yang@intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 2 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Yang, Rong R May 19, 2016, 8:37 a.m.
If enable pch, it request installed head file's path same as the compilered's
path. But cross compiler can't satisfy it. So disable pch first. May re-enable
it after workaround.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
---
 backend/src/backend/program.cpp | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp
index 60a7dcf..ef3801a 100644
--- a/backend/src/backend/program.cpp
+++ b/backend/src/backend/program.cpp
@@ -777,7 +777,11 @@  namespace gbe {
     std::istringstream idirs(dirs);
     std::string pchFileName;
     bool findPCH = false;
+#if defined(__ANDROID__)
+    bool invalidPCH = true;
+#else
     bool invalidPCH = false;
+#endif
     size_t start = 0, end = 0;
 
     std::string hdirs = OCL_HEADER_FILE_DIR;