Skip to content

CMake flag for runtime ICD discovery on Apple machines#1204

Merged
charles-lunarg merged 1 commit intoKhronosGroup:mainfrom
JarrettSJohnson:mac_runtime_icd
Feb 4, 2026
Merged

CMake flag for runtime ICD discovery on Apple machines#1204
charles-lunarg merged 1 commit intoKhronosGroup:mainfrom
JarrettSJohnson:mac_runtime_icd

Conversation

@JarrettSJohnson
Copy link
Contributor

For context, I'm a package manager for some Vulkan components, and one of them includes this Vulkan-Tools. One issue I'm currently running into is the build requirement for MoltenVK that's required for cube and cubepp. I assume that these could, and perhaps should, be able to be built without it (e.g. if you have KosmicKrisp as your preferred driver and don't have the SDK installed).

This PR introduces a CMake flag APPLE_USE_SYSTEM_ICD that will rely on the vulkan loader for driver discovery. I kept this flag off by default so that previous behavior would be maintained without any changes to the build workflow. This would be helpful for those who wants cube/pp without requiring MoltenVK at build time.

@ci-tester-lunarg
Copy link

Author JarrettSJohnson not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg
Copy link

Author JarrettSJohnson not on autobuild list. Waiting for curator authorization before starting CI build.

@CLAassistant
Copy link

CLAassistant commented Feb 3, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@charles-lunarg charles-lunarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good solution. vkcube indeed doesn't strictly require bundling a driver on macOS, so making it optional for package builders is the right call.

Thanks for going ahead and making the necessary changes!

@ci-tester-lunarg
Copy link

CI Vulkan-Tools build queued with queue ID 639829.

@ci-tester-lunarg
Copy link

CI Vulkan-Tools build # 1934 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Tools build # 1934 passed.

@charles-lunarg charles-lunarg merged commit 7aa95f4 into KhronosGroup:main Feb 4, 2026
18 checks passed
@JarrettSJohnson JarrettSJohnson deleted the mac_runtime_icd branch February 5, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants