[gn build] tweak how symbol_exports map files look on linux, for 94c00c10e
authorNico Weber <thakis@chromium.org>
Tue, 26 Jul 2022 05:50:48 +0000 (01:50 -0400)
committerNico Weber <thakis@chromium.org>
Tue, 26 Jul 2022 05:52:00 +0000 (01:52 -0400)
After bc39d7bdd497 (ported to GN in 94c00c10e), libclang uses symbol_exports,
and clang/test/LibClang/symbols.test wants the versioned name to be `LLVM_[0-9]$`
instead of `FOO`.

llvm/utils/gn/build/symbol_exports.py

index a76eed8..5126e70 100755 (executable)
@@ -25,7 +25,7 @@ def main():
     symbols = open(args.source).readlines()
 
     if args.format == 'linux':
-        output_lines = (['FOO {\n',
+        output_lines = (['LLVM_0 {\n',
                          '  global:\n',] +
                         ['    %s;\n' % s.rstrip() for s in symbols] +
                         ['  local:\n',