summaryrefslogtreecommitdiff
path: root/waterfox/0001-angle-set-c-14.patch
diff options
context:
space:
mode:
Diffstat (limited to 'waterfox/0001-angle-set-c-14.patch')
-rw-r--r--waterfox/0001-angle-set-c-14.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/waterfox/0001-angle-set-c-14.patch b/waterfox/0001-angle-set-c-14.patch
new file mode 100644
index 0000000..6d82f96
--- /dev/null
+++ b/waterfox/0001-angle-set-c-14.patch
@@ -0,0 +1,27 @@
+From a5c776769a911eeeaf10e276f8b17e93b1f07d19 Mon Sep 17 00:00:00 2001
+From: Phantom X <PhantomX@users.noreply.github.com>
+Date: Wed, 7 Apr 2021 23:20:18 -0300
+Subject: [PATCH] angle: set c++14
+
+---
+ gfx/angle/moz.build.common | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/gfx/angle/moz.build.common b/gfx/angle/moz.build.common
+index 31a1440..1bb83d5 100644
+--- a/gfx/angle/moz.build.common
++++ b/gfx/angle/moz.build.common
+@@ -7,6 +7,10 @@ if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'):
+ '-Wno-range-loop-construct',
+ ]
+
++if CONFIG['CC_TYPE'] in ('gcc'):
++ CXXFLAGS += [
++ '-std=c++14',
++ ]
+
+ if CONFIG['INTEL_ARCHITECTURE']:
+ CXXFLAGS += CONFIG['SSE2_FLAGS']
+--
+2.30.2
+
bgstack15