llvm-project/clang/tools/libclang/linker-script-to-export-list.py
H. Vetinari 0f28d48566
SONAME introduce option CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION
This reverts commit bc39d7bdd4977a953b2e102f8f7eb479ad78984e.

rename CLANG_SONAME to LIBCLANG_SOVERSION

[clang][cmake] introduce option CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION

Differential Revision: https://reviews.llvm.org/D132486
2022-08-25 08:36:01 +02:00

12 lines
225 B
Python

import re
import os
import sys
input_file = open(sys.argv[1])
output_file = open(sys.argv[2], 'w')
for line in input_file:
m = re.search('^\s+(clang_[^;]+)', line)
if m:
output_file.write(m.group(1) + "\n")