Skip to content

build: Avoid AppleClang using the wrong headers - #518

Merged
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:fix_apple_clang_using_wrong_vulkan_headers
Aug 5, 2026
Merged

build: Avoid AppleClang using the wrong headers#518
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:fix_apple_clang_using_wrong_vulkan_headers

Conversation

@charles-lunarg

Copy link
Copy Markdown
Collaborator

Because of AppleClang always adding /usr/local/include and CMake using -isystem by default in 3.25+, builds on MacOS could use system installed headers by mistake. Because this repo has code generated against a specific version of the Vulkan Headers, if the system installed headers are older (which is usually the case for developers of this repo) then the build fails.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ExtensionLayer build queued with queue ID 66775.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ExtensionLayer build # 1129 running.

@charles-lunarg
charles-lunarg force-pushed the fix_apple_clang_using_wrong_vulkan_headers branch from 74688bb to 0f24da6 Compare August 5, 2026 16:42
@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ExtensionLayer build queued with queue ID 66838.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ExtensionLayer build # 1130 running.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ExtensionLayer build # 1130 passed.

Because of AppleClang always adding /usr/local/include and CMake using
-isystem by default in 3.25+, builds on MacOS could use system installed
headers by mistake. Because this repo has code generated against a
specific version of the Vulkan Headers, if the system installed headers
are older (which is usually the case for developers of this repo) then
the build fails.
@charles-lunarg
charles-lunarg force-pushed the fix_apple_clang_using_wrong_vulkan_headers branch from 0f24da6 to fbf7bb1 Compare August 5, 2026 21:42
@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ExtensionLayer build queued with queue ID 67529.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ExtensionLayer build # 1131 running.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ExtensionLayer build # 1131 passed.

@charles-lunarg
charles-lunarg merged commit 7ce4b13 into KhronosGroup:main Aug 5, 2026
13 checks passed
@charles-lunarg
charles-lunarg deleted the fix_apple_clang_using_wrong_vulkan_headers branch August 5, 2026 22:35
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.

3 participants