Bug 1253076 - Handle the case defines are not present to avoid artifact build bustage when processing symbols files. r=glandium

MozReview-Commit-ID: 25oUlS12hec
This commit is contained in:
Chris Manchester 2016-03-02 16:25:56 -08:00
parent 9d78c6759b
commit 1bf18e6476

View File

@ -570,9 +570,12 @@ class TreeMetadataEmitter(LoggingMixin):
script = mozpath.join(
mozpath.dirname(mozpath.dirname(__file__)),
'action', 'generate_symbols_file.py')
defines = ()
if lib.defines:
defines = lib.defines.get_defines()
yield GeneratedFile(context, script,
'generate_symbols_file', lib.symbols_file,
[symbols_file.full_path], lib.defines.get_defines())
[symbols_file.full_path], defines)
if static_lib:
lib = StaticLibrary(context, libname, **static_args)
self._libs[libname].append(lib)