1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[gn build] try reverting code part of f05fbb7795

Maybe aa8fe8fe6c7b was all that was needed to fix the build and
we can keep the code with fewer conditionals after all.
This commit is contained in:
Nico Weber 2021-05-20 15:08:37 -04:00
parent 77abe655fc
commit b71c3b1c87

View File

@ -25,12 +25,12 @@ def main():
symbols = open(args.source).readlines()
if args.format == 'linux':
output_lines = ['FOO {\n']
if symbols:
output_lines += ([' global:\n',] +
[' %s;\n' % s.rstrip() for s in symbols])
output_lines += [' local: *;\n',
'};\n']
output_lines = (['FOO {\n',
' global:\n',] +
[' %s;\n' % s.rstrip() for s in symbols] +
[' local:\n',
' *;\n',
'};\n'])
elif args.format == 'mac':
output_lines = ['_' + s for s in symbols]
else: