소스 검색

Merge pull request #66534 from akien-mga/scons-msvc-graphite-silence-c++17-deprecation-warnings

SCons: Silence MSVC C++17 deprecation warnings in Graphite
Rémi Verschelde 2 년 전
부모
커밋
44799b896f
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      modules/text_server_adv/SCsub

+ 3 - 0
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