mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 930674 - Add NO_VISIBILITY_FLAGS to moz.build. r=gps
This commit is contained in:
parent
817ac2fa3a
commit
cdc3f39de8
@ -171,6 +171,10 @@ class TreeMetadataEmitter(LoggingMixin):
|
|||||||
if sandbox[moz]:
|
if sandbox[moz]:
|
||||||
passthru.variables[mak] = sandbox[moz]
|
passthru.variables[mak] = sandbox[moz]
|
||||||
|
|
||||||
|
# NO_VISIBILITY_FLAGS is slightly different
|
||||||
|
if sandbox['NO_VISIBILITY_FLAGS']:
|
||||||
|
passthru.variables['VISIBILITY_FLAGS'] = ''
|
||||||
|
|
||||||
varmap = dict(
|
varmap = dict(
|
||||||
ASFILES=('SOURCES', ('.s', '.asm')),
|
ASFILES=('SOURCES', ('.s', '.asm')),
|
||||||
CSRCS=('SOURCES', '.c'),
|
CSRCS=('SOURCES', '.c'),
|
||||||
|
@ -257,6 +257,10 @@ VARIABLES = {
|
|||||||
"""Whether profile-guided optimization is enabled in this directory.
|
"""Whether profile-guided optimization is enabled in this directory.
|
||||||
""", None),
|
""", None),
|
||||||
|
|
||||||
|
'NO_VISIBILITY_FLAGS': (bool, bool, False,
|
||||||
|
"""Build sources listed in this file without VISIBILITY_FLAGS.
|
||||||
|
""", None),
|
||||||
|
|
||||||
'OS_LIBS': (list, list, [],
|
'OS_LIBS': (list, list, [],
|
||||||
"""System link libraries.
|
"""System link libraries.
|
||||||
|
|
||||||
|
@ -43,3 +43,4 @@ SOURCES += ['baz.S', 'foo.S']
|
|||||||
FAIL_ON_WARNINGS = True
|
FAIL_ON_WARNINGS = True
|
||||||
LIBXUL_LIBRARY = True
|
LIBXUL_LIBRARY = True
|
||||||
MSVC_ENABLE_PGO = True
|
MSVC_ENABLE_PGO = True
|
||||||
|
NO_VISIBILITY_FLAGS = True
|
||||||
|
@ -358,6 +358,9 @@ class TestRecursiveMakeBackend(BackendTester):
|
|||||||
'SSRCS += baz.S',
|
'SSRCS += baz.S',
|
||||||
'SSRCS += foo.S',
|
'SSRCS += foo.S',
|
||||||
],
|
],
|
||||||
|
'VISIBILITY_FLAGS': [
|
||||||
|
'VISIBILITY_FLAGS :=',
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
for var, val in expected.items():
|
for var, val in expected.items():
|
||||||
|
@ -50,3 +50,4 @@ FORCE_SHARED_LIB = True
|
|||||||
FORCE_STATIC_LIB = True
|
FORCE_STATIC_LIB = True
|
||||||
EXPORT_LIBRARY = True
|
EXPORT_LIBRARY = True
|
||||||
IS_COMPONENT = True
|
IS_COMPONENT = True
|
||||||
|
NO_VISIBILITY_FLAGS = True
|
||||||
|
@ -163,6 +163,7 @@ class TestEmitterBasic(unittest.TestCase):
|
|||||||
SHARED_LIBRARY_LIBS=['fans.sll', 'tans.sll'],
|
SHARED_LIBRARY_LIBS=['fans.sll', 'tans.sll'],
|
||||||
SIMPLE_PROGRAMS=['fans.x', 'tans.x'],
|
SIMPLE_PROGRAMS=['fans.x', 'tans.x'],
|
||||||
SSRCS=['bans.S', 'fans.S'],
|
SSRCS=['bans.S', 'fans.S'],
|
||||||
|
VISIBILITY_FLAGS='',
|
||||||
)
|
)
|
||||||
|
|
||||||
variables = objs[1].variables
|
variables = objs[1].variables
|
||||||
|
Loading…
Reference in New Issue
Block a user