1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 if CONFIG["MOZ_WIDGET_TOOLKIT"]:
12 # Important: for these tests to be run, they also need to be added
13 # to testing/cppunittest.ini.
19 "TestAtomicBitfields",
29 "TestCountPopulation",
32 "TestDoublyLinkedList",
34 "TestEnumeratedArray",
37 "TestFastBernoulliTrial",
40 "TestFunctionTypeTraits",
42 "TestIntegerPrintfMacros",
50 "TestNonDereferenceable",
59 "TestSegmentedVector",
61 "TestSmallPointerArray",
66 "TestThreadSafeWeakPtr",
74 "TestWrappingOperations",
75 "TestXorShift128PlusRNG",
79 # Not to be unified with the rest, because this test
80 # sets MOZ_PRETEND_NO_JSRUST, which changes the behavior
81 # of the included headers.
88 if not CONFIG["MOZ_ASAN"]:
95 # Since we link directly with MFBT object files, define IMPL_MFBT
96 DEFINES["IMPL_MFBT"] = True
100 if CONFIG["CC_TYPE"] == "clang-cl":
102 "-wd4275", # non dll-interface class used as base for dll-interface class
103 "-wd4530", # C++ exception handler used, but unwind semantics are not enabled
110 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
111 CXXFLAGS += ["-Wno-error=shadow"]