Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apple: Fix incorrect version linker warning #1333

Merged
merged 1 commit into from
Oct 16, 2023
Merged

apple: Fix incorrect version linker warning #1333

merged 1 commit into from
Oct 16, 2023

Conversation

juan-lunarg
Copy link
Contributor

Sets the patch version to 0 to avoid the linker warning

Enable warnings as errors on CI to prevent regression

closes #1332

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 64185.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 2252 running.

@@ -350,6 +350,7 @@ jobs:
# Specify the minimum version of macOS on which the target binaries are to be deployed.
# https://cmake.org/cmake/help/latest/envvar/MACOSX_DEPLOYMENT_TARGET.html
MACOSX_DEPLOYMENT_TARGET: 10.12
LDFLAGS: -fatal_warnings
Copy link
Contributor Author

@juan-lunarg juan-lunarg Oct 16, 2023

Choose a reason for hiding this comment

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

We should enable linker warnings as errors for our MacOS SDK builds. FYI @richard-lunarg

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be more specific all of our SDK testing should treat warnings as errors. Not just Mac.

Comment on lines +391 to +392
# Workaround linker warning: https://github.com/KhronosGroup/Vulkan-Loader/issues/1332
set(APPLE_VULKAN_LOADER_VERSION "${VULKAN_LOADER_VERSION_MAJOR}.${VULKAN_LOADER_VERSION_MINOR}.0")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This sets it to 1.3.0 instead of 1.3.268

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 2252 passed.

Sets the patch version to 0 to avoid the linker warning

Enable warnings as errors on CI to prevent regression

closes #1332
@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 64199.

1 similar comment
@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 64199.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 2253 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 2253 passed.

@juan-lunarg
Copy link
Contributor Author

Note this will also affect the installed files. Example

-- Installing: /tmp/lib/libvulkan.1.3.0.dylib <-------
-- Installing: /tmp/lib/libvulkan.1.dylib
-- Installing: /tmp/lib/libvulkan.dylib

Copy link
Collaborator

@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.

👌

@juan-lunarg
Copy link
Contributor Author

CI passed on fork

@juan-lunarg juan-lunarg merged commit 83b4617 into KhronosGroup:main Oct 16, 2023
40 checks passed
@juan-lunarg juan-lunarg deleted the juan/fix_1332 branch October 16, 2023 20:41
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.

ld: libvulkan.dylib has incorrect current version
3 participants