[PATCH] D105527: libclang.so: Make SONAME independent from LLVM version

Michael Spencer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 27 16:55:30 PDT 2021


Bigcheese added a comment.

Here's a version that actually works (python 3, not sure if it's valid in 2), although I would much prefer we not write to the source directory during a build.

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


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105527/new/

https://reviews.llvm.org/D105527



More information about the cfe-commits mailing list