moz.build (930B)
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/. 6 7 FINAL_LIBRARY = "js" 8 9 # Includes should be relative to parent path 10 LOCAL_INCLUDES += ["!..", ".."] 11 12 include("../js-compileflags.mozbuild") 13 include("../js-config.mozbuild") 14 include("../js-cxxflags.mozbuild") 15 16 SOURCES += [ 17 "ittnotify_static.c", 18 "jitprofiling.c", 19 "VTuneWrapper.cpp", 20 ] 21 SOURCES["ittnotify_static.c"].flags += [ 22 "-Wno-varargs", 23 "-Wno-sign-compare", 24 "-Wno-unknown-pragmas", 25 ] 26 if CONFIG["CC_TYPE"] == "gcc": 27 SOURCES["ittnotify_static.c"].flags += ["-Wno-stringop-overflow"] 28 if int(CONFIG["CC_VERSION"].split(".")[0]) >= 8: 29 SOURCES["ittnotify_static.c"].flags += ["-Wno-stringop-truncation"]