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

[icu] Fix osx release only builds #34539

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

m-kuhn
Copy link
Contributor

@m-kuhn m-kuhn commented Oct 17, 2023

We don't necessarily build "debug", in case it's not built, avoid looping over this config in https://github.com/microsoft/vcpkg/pull/34539/files#diff-ea2b03d0dcb43b39cfac7b4f96e0ba52a5e4f15c1df6986850e0d52d56229430R94

Comment on lines 37 to 39
if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
set(DEBUG_TRIPLET ${TARGET_TRIPLET}-dbg)
endif()
Copy link
Contributor

Choose a reason for hiding this comment

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

Setting the variable as before doesn't really break anything, does it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the variable is set, we will loop over it here and try to fixup rpath on an inexistent file. It's not very self explanatory ... We'd probably better have one list to loop over than two separate variables.

https://github.com/microsoft/vcpkg/pull/34539/files#diff-ea2b03d0dcb43b39cfac7b4f96e0ba52a5e4f15c1df6986850e0d52d56229430R94

Copy link
Contributor Author

Choose a reason for hiding this comment

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

New version pushed

@jimwang118 jimwang118 added the category:port-bug The issue is with a library, which is something the port should already support label Oct 18, 2023
@jimwang118
Copy link
Contributor

Compile test pass with following triplets:

x64-osx

@jimwang118 jimwang118 added the info:reviewed Pull Request changes follow basic guidelines label Oct 27, 2023
@data-queue
Copy link
Contributor

I think I'm missing some context. Can you explain what these changes do?

@data-queue data-queue marked this pull request as draft October 28, 2023 02:53
@data-queue data-queue added info:reviewed Pull Request changes follow basic guidelines and removed info:reviewed Pull Request changes follow basic guidelines labels Oct 28, 2023
@m-kuhn
Copy link
Contributor Author

m-kuhn commented Oct 28, 2023

If we only build -rel but do not build -dbg, we currently get a build failure, as this port tries to access (inexistant) files of the -dbg build in the abovementioned loop.

@data-queue data-queue marked this pull request as ready for review October 30, 2023 22:01
@data-queue data-queue merged commit b94fe49 into microsoft:master Oct 30, 2023
15 checks passed
fwcd pushed a commit to fwcd/vcpkg that referenced this pull request Mar 21, 2024
* [icu] Fix osx release only builds

* Use list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants