[Beignet] [PATCH 06/10] Android: disable pch in android.
Yang Rong
rong.r.yang at intel.com
Thu May 19 08:37:12 UTC 2016
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 at intel.com>
---
backend/src/backend/program.cpp | 4 ++++
1 file changed, 4 insertions(+)
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;
--
2.1.4
More information about the Beignet
mailing list