Skip to content

Commit

Permalink
apply llvm16 fix for all version instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ArachnidAbby authored Feb 6, 2025
1 parent a47d54c commit 8070191
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ffi/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ def main_posix(kind, library_ext):
os.environ['LLVM_LIBS'] = \
f'{cxx_lld_libs} ' + ' '.join(libs.split())
# A necessary fix to use the conda-forge version of lld.
if version == 16 and sys.platform.startswith(('linux', 'gnu')):
os.environ['LLVM_LIBS'] = f"-rdynamic -Wl,-whole-archive {os.environ['LLVM_LIBS']} -Wl,-no-whole-archive"
os.environ['LLVM_LIBS'] = f"-rdynamic -Wl,-whole-archive {os.environ['LLVM_LIBS']} -Wl,-no-whole-archive"

cxxflags = run_llvm_config(llvm_config, ["--cxxflags"])
# on OSX cxxflags has null bytes at the end of the string, remove them
Expand Down

0 comments on commit 8070191

Please sign in to comment.