Skip to content

build: Avoid AppleClang using the wrong headers - #2713

Merged
charles-lunarg merged 1 commit into
LunarG:mainfrom
charles-lunarg:fix_apple_clang_using_wrong_vulkan_headers
Aug 6, 2026
Merged

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

Conversation

@charles-lunarg

Copy link
Copy Markdown
Contributor

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

CI VulkanTools build queued with queue ID 66752.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5354 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5354 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 51b660e to 2d55940 Compare August 5, 2026 21:40
@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build queued with queue ID 67507.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5355 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5355 failed.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build queued with queue ID 67598.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5356 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5356 passed.

@charles-lunarg
charles-lunarg merged commit 5ce04fa into LunarG:main Aug 6, 2026
9 checks passed
@charles-lunarg
charles-lunarg deleted the fix_apple_clang_using_wrong_vulkan_headers branch August 6, 2026 14:23
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.

2 participants