mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[gn build] attempt to unbreak linux after fc9696130c8
Only emit `global:` if there are any exported symbols. While here, `chmod +x` the symbol_exports.py script.
This commit is contained in:
parent
c41aa09bfb
commit
56a414f103
11
utils/gn/build/symbol_exports.py
Normal file → Executable file
11
utils/gn/build/symbol_exports.py
Normal file → Executable file
@ -25,11 +25,12 @@ def main():
|
||||
symbols = open(args.source).readlines()
|
||||
|
||||
if args.format == 'linux':
|
||||
output_lines = (['FOO {\n',
|
||||
' global:\n',] +
|
||||
[' %s;\n' % s.rstrip() for s in symbols] +
|
||||
[' 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]
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user