Bug 904831 - Part a: Support MSVC_ENABLE_PGO in moz.build; r=gps

This commit is contained in:
Ms2ger 2013-08-22 08:56:01 +02:00
parent 63b648bec1
commit c285c318c5
6 changed files with 11 additions and 0 deletions

View File

@ -134,6 +134,7 @@ class TreeMetadataEmitter(LoggingMixin):
LIBS='LIBS',
LIBXUL_LIBRARY='LIBXUL_LIBRARY',
MODULE='MODULE',
MSVC_ENABLE_PGO='MSVC_ENABLE_PGO',
SDK_LIBRARY='SDK_LIBRARY',
SHARED_LIBRARY_LIBS='SHARED_LIBRARY_LIBS',
SIMPLE_PROGRAMS='SIMPLE_PROGRAMS',

View File

@ -215,6 +215,10 @@ VARIABLES = {
Implies MOZILLA_INTERNAL_API.
"""),
'MSVC_ENABLE_PGO': (bool, bool, False,
"""Whether profile-guided optimization is enabled in this directory.
"""),
'SDK_LIBRARY': (StrictOrderingOnAppendList, list, [],
"""Elements of the distributed SDK.

View File

@ -42,3 +42,4 @@ SSRCS = ['bar.S', 'foo.S']
FAIL_ON_WARNINGS = True
LIBXUL_LIBRARY = True
MSVC_ENABLE_PGO = True

View File

@ -207,6 +207,9 @@ class TestRecursiveMakeBackend(BackendTester):
'LIBXUL_LIBRARY': [
'LIBXUL_LIBRARY := 1',
],
'MSVC_ENABLE_PGO': [
'MSVC_ENABLE_PGO := 1',
],
'SDK_LIBRARY': [
'SDK_LIBRARY += bar.sdk',
'SDK_LIBRARY += foo.sdk',

View File

@ -42,5 +42,6 @@ SSRCS = ['fans.S', 'tans.S']
FAIL_ON_WARNINGS = True
LIBXUL_LIBRARY = True
MSVC_ENABLE_PGO = True
NO_DIST_INSTALL = True

View File

@ -146,6 +146,7 @@ class TestEmitterBasic(unittest.TestCase):
LIBRARY_NAME='lib_name',
LIBS=['fans.lib', 'tans.lib'],
LIBXUL_LIBRARY=True,
MSVC_ENABLE_PGO=True,
NO_DIST_INSTALL='1',
MODULE='module_name',
SDK_LIBRARY=['fans.sdk', 'tans.sdk'],