From a9b21ec484678ee4d3945f68dcd7812037adc926 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 26 Jul 2022 01:50:48 -0400 Subject: [PATCH] [gn build] tweak how symbol_exports map files look on linux, for 94c00c10e 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/gn/build/symbol_exports.py b/llvm/utils/gn/build/symbol_exports.py index a76eed8..5126e70 100755 --- a/llvm/utils/gn/build/symbol_exports.py +++ b/llvm/utils/gn/build/symbol_exports.py @@ -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', -- 2.7.4