-
Notifications
You must be signed in to change notification settings - Fork 0
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
Generate mac dsyms #29
Open
mike-malburg
wants to merge
15
commits into
main
Choose a base branch
from
feature/generate-mac-dsym
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+205
−103
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It appears that for Mac, the Build module is not loaded when the post-build step is called, but for Windows, it is loaded. This causes it to succeed on Windows but fail on Mac: https://dev.azure.com/techsmith/ThirdParty-Packages-vcpkg/_build/results?buildId=321654&view=logs&j=429c24e7-d235-5344-0c1a-e6a4447c49a2&t=836129e9-d587-586f-4c79-2b8fd9e8d140 Windows output: -------------------------------------------------------------------------------- - Post-build step -------------------------------------------------------------------------------- Setting version info for: D:\a\1\s\PreStage\bin\whisper.dll Mac output: -------------------------------------------------------------------------------- - Post-build step -------------------------------------------------------------------------------- Get-IsOnMacOS: /Users/runner/work/1/s/custom-steps/whispercpp/post-build.ps1:8 Line | 8 | if ((Get-IsOnMacOS)) { | ~~~~~~~~~~~~~ | The term 'Get-IsOnMacOS' is not recognized as a name of a cmdlet, | function, script file, or executable program. Check the spelling of the | name, or if a path was included, verify that the path is correct and try | again. Updated all post-build steps with this fix.
Shortening the names of these.
This should have been removed, here: 6c49109
There is typically a chain of symlinks to the actual file when dealing with these mac builds (ex. foo.dylib ==> foo-1.dylib ==> foo-1.2.dylib ==> foo-1.2.3.dylib). The physical file is foo-1.2.3.dylib, but we want to just have the physical file be called foo.dylib and get rid of the symlinks (existing functionality in these scripts). To get the right name for the file, we find all the physical files and then walk the symlink chain backwards until we get to the top. There was a bug where if no symlinks are found from the Mac build, however, it was causing an infinite loop looking for them. I changed this so that we will not try to walk the symlink chain to find the top-level symlink for each physical file, and just return the same name for the physical file and the top of chain file.
whispercpp 1.5.5 now has dylib symlinks. We will remove those so that we just end up with libwhisper.dylib in our package.
These need to be in the same dir as libwhisper.dylib, or it may cause issues on Mac. Mac dynamically looks for ggml-metal.metal at runtime.
mike-malburg
force-pushed
the
feature/generate-mac-dsym
branch
4 times, most recently
from
May 13, 2024 23:37
7df7f5e
to
07018fc
Compare
This is a test C++ project that is built with meson instead of cmake. Pango is also built with meson instead of cmake.
This is also just for testing. It is another meson project.
The vcpkg_configure_cmake and vckpg_install_cmake functions were deprecated
We always do this, so lets simplify some post-build scripts (and get rid of some) by adding this to the Create-FinalizedMacArtifacts step.
We will just run this for all Mac builds, so we always try to generate these debug symbols.
mike-malburg
force-pushed
the
feature/generate-mac-dsym
branch
from
May 14, 2024 00:08
4d3d08a
to
8228c9f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Generate debug symbols (.dSYM folders) for dynamic Mac builds.