diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-06-28 11:06:00 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-06-28 11:06:00 +0300 |
commit | 140202a697f7a9d60b01de36c08f63ebd33fc5a9 (patch) | |
tree | 144de614dfa6c1288e7acde8c9584f376cff1263 /build/scripts | |
parent | d035a83fdacc62590460e2589854afeba02055b9 (diff) | |
download | ydb-140202a697f7a9d60b01de36c08f63ebd33fc5a9.tar.gz |
intermediate changes
ref:91e6b243cd7f0c53cbafb4f654eced58a4c1e436
Diffstat (limited to 'build/scripts')
-rw-r--r-- | build/scripts/export_script_gen.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build/scripts/export_script_gen.py b/build/scripts/export_script_gen.py index 269af2e3ca0..64b732eff5f 100644 --- a/build/scripts/export_script_gen.py +++ b/build/scripts/export_script_gen.py @@ -85,17 +85,20 @@ def to_msvc(src, dest): def to_darwin(src, dest): + pre = '' for item in parse_export_file(src): if item.get('linux_version'): continue if item['lang'] == 'C': - dest.write('-Wl,-exported_symbol,_' + item['sym']) + dest.write(pre + '-Wl,-exported_symbol,_' + item['sym']) elif item['lang'] == 'C++': for sym in to_c(item['sym']): - dest.write('-Wl,-exported_symbol,_' + sym) + dest.write(pre + '-Wl,-exported_symbol,_' + sym) else: raise Exception('unsupported lang: ' + item['lang']) + if pre == '': + pre = ' ' def main(): |