GBE: enable relocatable pch files.
authorZhigang Gong <zhigang.gong@intel.com>
Thu, 9 Jan 2014 06:20:29 +0000 (14:20 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 10 Jan 2014 09:27:55 +0000 (17:27 +0800)
commitc9d1b85a151ed3918a65584b654e5ff059a7724c
tree5405dea239da17278f136f6d88382991c883606e
parent03e53efebb24387a48ce10c0d21f58dbb7b5c82e
GBE: enable relocatable pch files.

As by default, when include a pch file, clang need to make sure
the original header file is untouched. This is impossible when
we want to distribute a pch file to a new system. We need to
use the relocatable pch feature provided by clang here.
We now create two pch files. One is relocatable pch file which
is used to install to the system directory. The other is a local
pch file which is used during the build time. We need both pch
files because at the build time, we don't have an ocl_stdlib.h
in the system directory. The local pch file is used for the beignet's
build and the utest only. All the other applications will use
the installed pch/pcm files.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
backend/src/CMakeLists.txt