mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
bug 1032055 - prevent lto from reordering static xul component constants r=glandium
This commit is contained in:
parent
419be6ec53
commit
082e8e418e
@ -6,6 +6,10 @@ SOURCES += [
|
||||
'StaticXULComponentsEnd.cpp',
|
||||
]
|
||||
|
||||
# Don't let LTO reorder StaticXULComponentsStart.o.
|
||||
if '-flto' in CONFIG['OS_CXXFLAGS']:
|
||||
SOURCES['StaticXULComponentsEnd.cpp'].flags += ['-fno-lto']
|
||||
|
||||
LIBRARY_NAME = 'StaticXULComponentsEnd'
|
||||
|
||||
DEFINES['MOZILLA_INTERNAL_API'] = True
|
||||
|
@ -22,6 +22,10 @@ MSVC_ENABLE_PGO = True
|
||||
# it contains first in Windows PGO builds.
|
||||
SOURCES['StaticXULComponentsStart.cpp'].no_pgo = True
|
||||
|
||||
# Don't let LTO reorder StaticXULComponentsStart.o.
|
||||
if '-flto' in CONFIG['OS_CXXFLAGS']:
|
||||
SOURCES['StaticXULComponentsStart.cpp'].flags += ['-fno-lto']
|
||||
|
||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
SOURCES += [
|
||||
'nsDllMain.cpp',
|
||||
|
Loading…
Reference in New Issue
Block a user