Skip to content

Commit

Permalink
Add -headerpad_max_install_names to macOS LD_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
phoerious committed Aug 11, 2023
1 parent a6fdc5b commit 0a6d6e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resiliparse/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import glob
import os
import platform
import shutil
import sys
import warnings
Expand Down Expand Up @@ -55,6 +56,8 @@ def get_cpp_args():
if ASAN:
cpp_args['extra_compile_args'].append('-fsanitize=address')
cpp_args['extra_link_args'].append('-fsanitize=address')
if platform.system() == 'Darwin':
cpp_args['extra_link_args'].append('-headerpad_max_install_names')

elif CXX == 'msvc':
cpp_args.update(dict(
Expand Down

0 comments on commit 0a6d6e6

Please sign in to comment.