summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-28 13:20:41 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-28 13:27:19 +0200
commit965022e5f62d393465e3c16a25aa3396b9bf7154 (patch)
treedfaa7f9935ff4aefb9e8aef2d5f0b7084e4fec13
parent14e1f36e614686f3fea0c74fac3624d1027dd5cc (diff)
SCons: Silence MSVC C++17 deprecation warnings in Graphite
Fixes #66497.
-rw-r--r--modules/text_server_adv/SCsub3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/text_server_adv/SCsub b/modules/text_server_adv/SCsub
index 8d0245f0f6..847d8b7ee3 100644
--- a/modules/text_server_adv/SCsub
+++ b/modules/text_server_adv/SCsub
@@ -215,6 +215,9 @@ if env["builtin_graphite"] and freetype_enabled and env["graphite"]:
]
)
+ if env.msvc: # Not our business to fix.
+ env_graphite.Append(CCFLAGS=["-D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS"])
+
lib = env_graphite.add_library("graphite_builtin", thirdparty_sources)
thirdparty_obj += lib