Skip to content

Commit

Permalink
Change darwin dylib envs
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinMeimar committed Oct 10, 2024
1 parent f83ea1e commit 4ac8657
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dragon_runner/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,17 @@ def source_env(self):
rt_filename = runtime_path.stem

if sys.platform == "darwin":
preload_env = { "DYLD_INSERT_LIBRARIES": str(runtime_dir) }
preload_env = {
"DYLD_LIBRARY_PATH": str(runtime_dir),
"DYLD_INSERT_LIBRARIES": str(runtime_path)
}
else:
preload_env = { "LD_LIBRARY_PATH": str(runtime_dir) }
preload_env = {
"LD_LIBRARY_PATH": str(runtime_dir),
"LD_PRELOAD": str(runtime_path)
}

preload_env.update({
"LD_PRELOAD": str(runtime_path),
"RT_PATH": str(runtime_dir),
"RT_LIB": rt_filename[3:]
})
Expand Down

0 comments on commit 4ac8657

Please sign in to comment.