Skip to content

Commit

Permalink
dependencies: support old vulkan SDK version
Browse files Browse the repository at this point in the history
In old versions of Vulkan SDK, VK_SDK_PATH environment variable was used instead
of VULKAN_SDK.

This patch check both environment variables is fallback mode.
  • Loading branch information
ceyusa committed Dec 16, 2024
1 parent 0b41b36 commit 8b3488c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/dependencies/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def __init__(self, name: str, environment: 'Environment', kwargs: T.Dict[str, T.
super().__init__(name, environment, kwargs, language=language)

try:
self.vulkan_sdk = os.environ['VULKAN_SDK']
self.vulkan_sdk = os.getenv('VULKAN_SDK', os.environ['VK_SDK_PATH'])
if not os.path.isabs(self.vulkan_sdk):
raise DependencyException('VULKAN_SDK must be an absolute path.')
except KeyError:
Expand Down

0 comments on commit 8b3488c

Please sign in to comment.