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>
Thu, 16 Jan 2014 02:30:37 +0000 (10:30 +0800)
commit70d068d8da417a5a52a79785b51848ee3e408850
tree0d56ff552cbb49b3da8dfcb758068ba4d5c5d0af
parent9a94d1fb4db2b7bf98103b6ce7e162363041c878
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>
Tested-by: "Song, Ruiling" <ruiling.song@intel.com>
backend/src/CMakeLists.txt