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/.
15 if CONFIG["WRAP_STL_INCLUDES"]:
16 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
17 EXPORTS.mozilla += ["throw_gcc.h"]
18 elif CONFIG["CC_TYPE"] == "clang-cl":
19 DEFINES["_HAS_EXCEPTIONS"] = 0
21 "msvc_raise_wrappers.cpp",
24 if CONFIG["OS_TARGET"] == "WINNT":
25 # Keep this file separate to avoid #include'ing windows.h everywhere.
39 if CONFIG["MOZ_MEMORY"]:
40 # In MinGW, we don't want to actually export these functions out of the library
41 # as the functions in libc++ correctly forward to jemalloc and exporting them
42 # produces duplicate symbol errors.
43 if not (CONFIG["CC_TYPE"] == "clang" and CONFIG["OS_TARGET"] == "WINNT"):
48 if CONFIG["CPU_ARCH"] == "arm" and CONFIG["CC_TYPE"] == "clang":
49 SOURCES["mozalloc_abort.cpp"].flags += ["-Wno-infinite-recursion"]
51 FINAL_LIBRARY = "mozglue"
53 # The strndup declaration in string.h is in an ifdef __USE_GNU section
54 DEFINES["_GNU_SOURCE"] = True