summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-10-09 20:39:44 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2019-10-10 04:16:27 (GMT)
commitf247a8a3b6e75b67f9de7e21fbecf7834125b174 (patch)
tree057411c2b9b262ae2fd4dba313f6ee202c4bd64b
parente74263dfd06d4caf55d8a366e2ec7327550cab1d (diff)
downloadmeta-intel-f247a8a3b6e75b67f9de7e21fbecf7834125b174.tar.gz
intel-media-driver: Use -fno-tree-pre when using gcc aloneHEADzeusmaster
Fixes clang-9: error: unknown argument: '-fno-tree-pre' Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--recipes-multimedia/libva/intel-media-driver_19.2.1.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-multimedia/libva/intel-media-driver_19.2.1.bb b/recipes-multimedia/libva/intel-media-driver_19.2.1.bb
index 53ade25..31e8da9 100644
--- a/recipes-multimedia/libva/intel-media-driver_19.2.1.bb
+++ b/recipes-multimedia/libva/intel-media-driver_19.2.1.bb
@@ -41,6 +41,10 @@ EXTRA_OECMAKE += " \
41 -DMEDIA_BUILD_FATAL_WARNINGS=OFF \ 41 -DMEDIA_BUILD_FATAL_WARNINGS=OFF \
42 " 42 "
43 43
44do_configure_prepend_toolchain-clang() {
45 sed -i -e '/-fno-tree-pre/d' ${S}/media_driver/cmake/linux/media_compile_flags_linux.cmake
46}
47
44# See: https://github.com/intel/media-driver/issues/358 48# See: https://github.com/intel/media-driver/issues/358
45FILES_${PN} += " \ 49FILES_${PN} += " \
46 ${libdir}/dri/ \ 50 ${libdir}/dri/ \