scons,test: Don't -Wall or -Werror for googletest libraries.

These libraries come from elsewhere, and so there's no reason to worry
about warnings. We can't fix them even if they crop up. Also, set
CCFLAGS to avoid having a mixture of gem5 flags and googletest flags.

Change-Id: I19b07747a43cebb263ae1546c75631cff1f13132
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/48368
Maintainer: Gabe Black <gabe.black@gmail.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
This commit is contained in:
Gabe Black
2021-07-18 22:45:27 -07:00
parent b3b81196aa
commit 5a53ed4e31

View File

@@ -43,9 +43,8 @@ gmock_src = Dir('googlemock/src')
main.Append(CPPPATH=[gtest_include, gmock_include])
main.Append(LIBPATH=[build])
env = main.Clone(CPPFLAGS=['-g', '-Wall', '-Wextra', '-pthread',
'-Wno-undef', '-isystem', str(gtest_include),
'-isystem', str(gmock_include)])
env = main.Clone(CCFLAGS=['-g', '-pthread', '-Wno-undef', '-isystem',
str(gtest_include), '-isystem', str(gmock_include)])
env.Append(CPPPATH=[gtest_base, gmock_base])
gtest_all = env.Object(gtest_src.File('gtest-all.cc'))