mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[gn build] use PEP-8 indents in symbol_exports.py
This commit is contained in:
parent
56a414f103
commit
8f7f747cf3
@ -25,17 +25,17 @@ 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']
|
||||
if symbols:
|
||||
output_lines += ([' global:\n',] +
|
||||
[' %s;\n' % s.rstrip() for s in symbols])
|
||||
output_lines += [' local: *;\n',
|
||||
'}\n']
|
||||
elif args.format == 'mac':
|
||||
output_lines = ['_' + s for s in symbols]
|
||||
output_lines = ['_' + s for s in symbols]
|
||||
else:
|
||||
assert args.format == 'win'
|
||||
output_lines = ['EXPORTS\n'] + [' ' + s for s in symbols]
|
||||
assert args.format == 'win'
|
||||
output_lines = ['EXPORTS\n'] + [' ' + s for s in symbols]
|
||||
|
||||
open(args.output, 'w').writelines(output_lines)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user