Bug 930674 - Add NO_VISIBILITY_FLAGS to moz.build. r=gps

This commit is contained in:
Ted Mielczarek 2013-10-24 15:06:19 -04:00
parent 817ac2fa3a
commit cdc3f39de8
6 changed files with 14 additions and 0 deletions

View File

@ -171,6 +171,10 @@ class TreeMetadataEmitter(LoggingMixin):
if sandbox[moz]:
passthru.variables[mak] = sandbox[moz]
# NO_VISIBILITY_FLAGS is slightly different
if sandbox['NO_VISIBILITY_FLAGS']:
passthru.variables['VISIBILITY_FLAGS'] = ''
varmap = dict(
ASFILES=('SOURCES', ('.s', '.asm')),
CSRCS=('SOURCES', '.c'),

View File

@ -257,6 +257,10 @@ VARIABLES = {
"""Whether profile-guided optimization is enabled in this directory.
""", None),
'NO_VISIBILITY_FLAGS': (bool, bool, False,
"""Build sources listed in this file without VISIBILITY_FLAGS.
""", None),
'OS_LIBS': (list, list, [],
"""System link libraries.

View File

@ -43,3 +43,4 @@ SOURCES += ['baz.S', 'foo.S']
FAIL_ON_WARNINGS = True
LIBXUL_LIBRARY = True
MSVC_ENABLE_PGO = True
NO_VISIBILITY_FLAGS = True

View File

@ -358,6 +358,9 @@ class TestRecursiveMakeBackend(BackendTester):
'SSRCS += baz.S',
'SSRCS += foo.S',
],
'VISIBILITY_FLAGS': [
'VISIBILITY_FLAGS :=',
],
}
for var, val in expected.items():

View File

@ -50,3 +50,4 @@ FORCE_SHARED_LIB = True
FORCE_STATIC_LIB = True
EXPORT_LIBRARY = True
IS_COMPONENT = True
NO_VISIBILITY_FLAGS = True

View File

@ -163,6 +163,7 @@ class TestEmitterBasic(unittest.TestCase):
SHARED_LIBRARY_LIBS=['fans.sll', 'tans.sll'],
SIMPLE_PROGRAMS=['fans.x', 'tans.x'],
SSRCS=['bans.S', 'fans.S'],
VISIBILITY_FLAGS='',
)
variables = objs[1].variables