[go: nahoru, domu]

Skip to content

Commit

Permalink
Bug 1481719 - Disable profile-instr-out-of-date warnings explicitly r…
Browse files Browse the repository at this point in the history
…ather than allowing all warnings where they appear. r=dmajor
  • Loading branch information
glandium committed Aug 8, 2018
1 parent a4d5584 commit 35d0b63
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 23 deletions.
3 changes: 0 additions & 3 deletions accessible/interfaces/ia2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,3 @@ if CONFIG['CC_TYPE'] == 'clang-cl':
'-Wno-missing-braces',
'-Wno-unused-const-variable',
]

if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
AllowCompilerWarnings() # workaround for bug 1090497
3 changes: 0 additions & 3 deletions accessible/interfaces/msaa/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,3 @@ if CONFIG['CC_TYPE'] == 'clang-cl':
'-Wno-missing-braces',
'-Wno-unused-const-variable',
]

if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
AllowCompilerWarnings() # workaround for bug 1090497
1 change: 1 addition & 0 deletions build/moz.configure/toolchain.configure
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,7 @@ def pgo_flags(compiler, build_env, target):
gen_cflags=['-fprofile-instr-generate'],
gen_ldflags=['clang_rt.profile-x86_64.lib'],
use_cflags=['-fprofile-instr-use=%s' % profdata,
'-Wno-error=profile-instr-out-of-date',
'-Wno-error=profile-instr-unprofiled'],
use_ldflags=[],
)
Expand Down
3 changes: 1 addition & 2 deletions dom/plugins/ipc/hangui/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ OS_LIBS += [
'comctl32',
]

if ((CONFIG['MOZ_PGO'] or
(not CONFIG['HAVE_64BIT_BUILD'] and CONFIG['ENABLE_CLANG_PLUGIN']))
if (not CONFIG['HAVE_64BIT_BUILD'] and CONFIG['ENABLE_CLANG_PLUGIN']
and CONFIG['CC_TYPE'] == 'clang-cl'):
AllowCompilerWarnings() # workaround for bug 1090497
3 changes: 0 additions & 3 deletions dom/url/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,3 @@ BROWSER_CHROME_MANIFESTS += [ 'tests/browser.ini' ]
include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'

if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
AllowCompilerWarnings() # workaround for bug 1090497
3 changes: 0 additions & 3 deletions ipc/contentproc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
'/security/sandbox/chromium',
'/security/sandbox/chromium-shim',
]

if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
AllowCompilerWarnings() # workaround for bug 1090497
3 changes: 0 additions & 3 deletions js/xpconnect/shell/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,3 @@ if CONFIG['OS_ARCH'] == 'WINNT':
CFLAGS += CONFIG['TK_CFLAGS']
CXXFLAGS += CONFIG['TK_CFLAGS']
OS_LIBS += CONFIG['TK_LIBS']

if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
AllowCompilerWarnings() # workaround for bug 1090497
3 changes: 0 additions & 3 deletions mozglue/tests/gtest/InjectorDLL/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ UNIFIED_SOURCES = [

if CONFIG['COMPILE_ENVIRONMENT']:
TEST_HARNESS_FILES.gtest += ['!InjectorDLL.dll']

if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
AllowCompilerWarnings() # workaround for bug 1090497
3 changes: 0 additions & 3 deletions toolkit/crashreporter/minidump-analyzer/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,3 @@ if CONFIG['OS_TARGET'] != 'WINNT':
DisableStlWrapping()

include('/toolkit/crashreporter/crashreporter.mozbuild')

if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
AllowCompilerWarnings() # workaround for bug 1090497

0 comments on commit 35d0b63

Please sign in to comment.