projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa8fe8f
)
[gn build] try reverting code part of f05fbb7795
author
Nico Weber
<thakis@chromium.org>
Thu, 20 May 2021 19:08:37 +0000
(15:08 -0400)
committer
Nico Weber
<thakis@chromium.org>
Thu, 20 May 2021 19:08:39 +0000
(15:08 -0400)
Maybe
aa8fe8fe6c7b
was all that was needed to fix the build and
we can keep the code with fewer conditionals after all.
llvm/utils/gn/build/symbol_exports.py
patch
|
blob
|
history
diff --git
a/llvm/utils/gn/build/symbol_exports.py
b/llvm/utils/gn/build/symbol_exports.py
index
7f5a4e9
..
198eb05
100755
(executable)
--- a/
llvm/utils/gn/build/symbol_exports.py
+++ b/
llvm/utils/gn/build/symbol_exports.py
@@
-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: