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 authored and eli-schwartz committed Dec 16, 2024
1 parent 16cf71f commit bcb6052
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.environ.get('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 bcb6052

Please sign in to comment.