no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / js / src / js-cxxflags.mozbuild
blobe412566000f129814d525f3a2c7a8fd8b9b1ce36
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 # ICU pkg-config flags
8 CXXFLAGS += CONFIG["MOZ_ICU_CFLAGS"]
10 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
11     # Error on bad printf-like format strings
12     CXXFLAGS += ["-Werror=format"]
14 # gcc is buggy and warns on our attempts to JS_PUBLIC_API our
15 # forward-declarations or explicit template instantiations. See
16 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50044
17 if CONFIG["CC_TYPE"] == "gcc":
18     CXXFLAGS += ["-Wno-attributes"]