Bug 1705532 use async/await instead of callbacks r=annyG
[gecko.git] / js / src / js-cxxflags.mozbuild
blob00ae07826d998fdb7ad5f3133a2286d8ac044ee6
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     # Also disable strict-aliasing for GCC compiler, that is enabled by default
12     # starting with version 7.1, see Bug 1363009
13     CXXFLAGS += ['-fno-strict-aliasing']
14     # Error on bad printf-like format strings
15     CXXFLAGS += ['-Werror=format']
17 # gcc is buggy and warns on our attempts to JS_PUBLIC_API our
18 # forward-declarations or explicit template instantiations. See
19 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50044
20 if CONFIG['CC_TYPE'] == 'gcc':
21     CXXFLAGS += ['-Wno-attributes']