Skip to content

Commit

Permalink
Use LD_LIBRARY_PATH instead of LD_PRELOAD
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Sep 19, 2023
1 parent ec9d3b1 commit c0bf46b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .builder/actions/setup_asan.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ def run(self, env):
compiler = os.getenv('CC')
proc = subprocess.run([compiler, '-print-file-name=libclang_rt.asan-x86_64.so'], stdout=subprocess.PIPE)
proc.check_returncode()
path = proc.stdout.decode().strip()
# TODO Use LD_LIBRARY_PATH
self._setenv('LD_PRELOAD', path)
path = os.path.dirname(proc.stdout.decode().strip())
self._setenv('LD_LIBRARY_PATH', path)

def _setenv(self, var, value):
"""
Expand Down

0 comments on commit c0bf46b

Please sign in to comment.