summaryrefslogtreecommitdiffstats
path: root/TOOLS/dylib-unhell.py
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/dylib-unhell.py')
-rwxr-xr-xTOOLS/dylib-unhell.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/TOOLS/dylib-unhell.py b/TOOLS/dylib-unhell.py
index 5221a18e00..a029a03d9a 100755
--- a/TOOLS/dylib-unhell.py
+++ b/TOOLS/dylib-unhell.py
@@ -95,6 +95,9 @@ def check_vulkan_max_version(version):
except:
return False
+def get_homebrew_prefix():
+ return subprocess.check_output("brew --prefix", universal_newlines=True, shell=True).strip()
+
def install_name_tool_change(old, new, objfile):
subprocess.call(["install_name_tool", "-change", old, new, objfile], stderr=subprocess.DEVNULL)
@@ -184,6 +187,7 @@ def process_vulkan_loader(binary, loaderName, loaderRelativeFolder, libraryNode)
os.path.join(os.path.expanduser("~"), ".local/share", loaderRelativeFolder),
os.path.join("/usr/local/share", loaderRelativeFolder),
os.path.join("/usr/share/vulkan", loaderRelativeFolder),
+ os.path.join(get_homebrew_prefix(), 'share', loaderRelativeFolder),
]
loaderSystemFolder = ""