[SCons] Suppress spurious GTest warnings

Apple Clang (clang-2100.0.123.102) was issuing warnings about
"implicit conversion from 'char8_t' to 'char32_t'".
This commit is contained in:
Ray Speth
2026-06-10 10:31:50 -04:00
committed by Ray Speth
parent 38f4d8c314
commit e8836bc477
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -5,7 +5,7 @@ from os.path import join as pjoin
import time
import sys
from buildutils import logger, test_results, multi_glob
from buildutils import logger, test_results, multi_glob, add_system_include
Import('env','build','install')
localenv = env.Clone()
@@ -19,8 +19,9 @@ if env['python_package'] != 'y':
localenv.Append(CPPDEFINES={'CT_SKIP_PYTHON': '1'})
if env['googletest'] == 'submodule':
localenv.Prepend(CPPPATH=['#ext/googletest/googletest/include',
'#ext/googletest/googlemock/include'])
add_system_include(localenv, ['#ext/googletest/googletest/include',
'#ext/googletest/googlemock/include'])
if env['googletest'] != 'none':
localenv.Append(LIBS=['gtest', 'gmock'])