summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-03-01 21:10:08 -0800
committerKhem Raj <raj.khem@gmail.com>2023-03-02 00:31:38 -0800
commit788e57484a4af565bd44221c09eacf41c5310fca (patch)
treef5cafa19fe787667abb87199cfae5a37f814f2dd
parenta2df377c319198c39fbfbe721a4870efb8766a7a (diff)
downloadmeta-openembedded-788e57484a4af565bd44221c09eacf41c5310fca.tar.gz
glm: Update to tip of trunk
Do not use -Werror on clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-graphics/glm/glm/0001-Do-not-use-Werror-with-clang.patch30
-rw-r--r--meta-oe/recipes-graphics/glm/glm/0001-Silence-clang-warnings.patch20
-rw-r--r--meta-oe/recipes-graphics/glm/glm_0.9.9.8.bb6
3 files changed, 33 insertions, 23 deletions
diff --git a/meta-oe/recipes-graphics/glm/glm/0001-Do-not-use-Werror-with-clang.patch b/meta-oe/recipes-graphics/glm/glm/0001-Do-not-use-Werror-with-clang.patch
new file mode 100644
index 0000000000..7b3e005ff9
--- /dev/null
+++ b/meta-oe/recipes-graphics/glm/glm/0001-Do-not-use-Werror-with-clang.patch
@@ -0,0 +1,30 @@
1From ee405855bca7d6399ff1a1aef952010056c84ff6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 1 Mar 2023 21:08:09 -0800
4Subject: [PATCH] Do not use -Werror with clang
5
6Too many warnings to handle for a distro build
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 test/CMakeLists.txt | 4 ----
11 1 file changed, 4 deletions(-)
12
13diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
14index e7f85f19..0b6fd980 100644
15--- a/test/CMakeLists.txt
16+++ b/test/CMakeLists.txt
17@@ -197,10 +197,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
18 message("GLM: Clang - ${CMAKE_CXX_COMPILER_ID} compiler")
19 endif()
20
21- add_compile_options(-Werror -Weverything)
22- add_compile_options(-Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-c++11-long-long -Wno-padded -Wno-gnu-anonymous-struct -Wno-nested-anon-types)
23- add_compile_options(-Wno-undefined-reinterpret-cast -Wno-sign-conversion -Wno-unused-variable -Wno-missing-prototypes -Wno-unreachable-code -Wno-missing-variable-declarations -Wno-sign-compare -Wno-global-constructors -Wno-unused-macros -Wno-format-nonliteral)
24-
25 elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
26 if(NOT GLM_QUIET)
27 message("GLM: GCC - ${CMAKE_CXX_COMPILER_ID} compiler")
28--
292.39.2
30
diff --git a/meta-oe/recipes-graphics/glm/glm/0001-Silence-clang-warnings.patch b/meta-oe/recipes-graphics/glm/glm/0001-Silence-clang-warnings.patch
index 3a62fffe3a..10692dd423 100644
--- a/meta-oe/recipes-graphics/glm/glm/0001-Silence-clang-warnings.patch
+++ b/meta-oe/recipes-graphics/glm/glm/0001-Silence-clang-warnings.patch
@@ -26,8 +26,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
26 test/gtx/gtx_fast_trigonometry.cpp | 30 ++++++++++++------------------ 26 test/gtx/gtx_fast_trigonometry.cpp | 30 ++++++++++++------------------
27 3 files changed, 14 insertions(+), 20 deletions(-) 27 3 files changed, 14 insertions(+), 20 deletions(-)
28 28
29diff --git a/glm/ext/quaternion_common.inl b/glm/ext/quaternion_common.inl
30index 0e4a3bb2..6f99f52d 100644
31--- a/glm/ext/quaternion_common.inl 29--- a/glm/ext/quaternion_common.inl
32+++ b/glm/ext/quaternion_common.inl 30+++ b/glm/ext/quaternion_common.inl
33@@ -104,7 +104,7 @@ namespace glm 31@@ -104,7 +104,7 @@ namespace glm
@@ -39,21 +37,6 @@ index 0e4a3bb2..6f99f52d 100644
39 return (sin(angle - a * phi)* x + sin(a * phi) * z) / sin(angle); 37 return (sin(angle - a * phi)* x + sin(a * phi) * z) / sin(angle);
40 } 38 }
41 } 39 }
42diff --git a/glm/gtc/random.inl b/glm/gtc/random.inl
43index 70485098..a4af2a06 100644
44--- a/glm/gtc/random.inl
45+++ b/glm/gtc/random.inl
46@@ -22,7 +22,7 @@ namespace detail
47 GLM_FUNC_QUALIFIER static vec<1, uint8, P> call()
48 {
49 return vec<1, uint8, P>(
50- std::rand() % std::numeric_limits<uint8>::max());
51+ static_cast<uint8>(std::rand()) % std::numeric_limits<uint8>::max());
52 }
53 };
54
55diff --git a/test/gtx/gtx_fast_trigonometry.cpp b/test/gtx/gtx_fast_trigonometry.cpp
56index 8bf86ba0..ddaa708b 100644
57--- a/test/gtx/gtx_fast_trigonometry.cpp 40--- a/test/gtx/gtx_fast_trigonometry.cpp
58+++ b/test/gtx/gtx_fast_trigonometry.cpp 41+++ b/test/gtx/gtx_fast_trigonometry.cpp
59@@ -19,15 +19,14 @@ namespace fastCos 42@@ -19,15 +19,14 @@ namespace fastCos
@@ -160,6 +143,3 @@ index 8bf86ba0..ddaa708b 100644
160 const std::clock_t timestamp3 = std::clock(); 143 const std::clock_t timestamp3 = std::clock();
161 const std::clock_t time_fast = timestamp2 - timestamp1; 144 const std::clock_t time_fast = timestamp2 - timestamp1;
162 const std::clock_t time_default = timestamp3 - timestamp2; 145 const std::clock_t time_default = timestamp3 - timestamp2;
163--
1642.31.1
165
diff --git a/meta-oe/recipes-graphics/glm/glm_0.9.9.8.bb b/meta-oe/recipes-graphics/glm/glm_0.9.9.8.bb
index 9edcb2b6e1..3797314b47 100644
--- a/meta-oe/recipes-graphics/glm/glm_0.9.9.8.bb
+++ b/meta-oe/recipes-graphics/glm/glm_0.9.9.8.bb
@@ -11,19 +11,19 @@ LIC_FILES_CHKSUM = "file://copying.txt;md5=462e4b97f73ef12f8171c3c546ce4e8d"
11SRC_URI = " \ 11SRC_URI = " \
12 git://github.com/g-truc/glm;branch=master;protocol=https \ 12 git://github.com/g-truc/glm;branch=master;protocol=https \
13 file://0001-Silence-clang-warnings.patch \ 13 file://0001-Silence-clang-warnings.patch \
14 file://0001-Do-not-use-Werror-with-clang.patch \
14 file://glmConfig.cmake.in \ 15 file://glmConfig.cmake.in \
15 file://glmConfigVersion.cmake.in \ 16 file://glmConfigVersion.cmake.in \
16 file://glm.pc.in \ 17 file://glm.pc.in \
17 file://glmTargets.cmake \ 18 file://glmTargets.cmake \
18" 19"
19SRCREV = "bf71a834948186f4097caa076cd2663c69a10e1e" 20SRCREV = "efec5db081e3aad807d0731e172ac597f6a39447"
21PV .= "+0.9.9.9+git${SRCPV}"
20 22
21S = "${WORKDIR}/git" 23S = "${WORKDIR}/git"
22 24
23inherit cmake 25inherit cmake
24 26
25CXXFLAGS:append:toolchain-clang = " -Wno-error=invalid-utf8 -Wno-error=disabled-macro-expansion -Wno-error=reserved-identifier"
26
27do_install() { 27do_install() {
28 install -d ${D}${includedir} ${D}${docdir}/glm ${D}${libdir}/pkgconfig ${D}${libdir}/cmake/glm 28 install -d ${D}${includedir} ${D}${docdir}/glm ${D}${libdir}/pkgconfig ${D}${libdir}/cmake/glm
29 cp -R --no-dereference --preserve=mode,links ${S}/glm ${D}${includedir} 29 cp -R --no-dereference --preserve=mode,links ${S}/glm ${D}${includedir}