Skip to content

[hanjingo-high-jump] Update to 1.0.11 - #53272

Draft
hehanjing (hanjingo) wants to merge 21 commits into
microsoft:masterfrom
hanjingo:ports/high-jump
Draft

[hanjingo-high-jump] Update to 1.0.11#53272
hehanjing (hanjingo) wants to merge 21 commits into
microsoft:masterfrom
hanjingo:ports/high-jump

Conversation

@hanjingo

Copy link
Copy Markdown
Contributor

No description provided.

hehanjing (hanjingo) and others added 18 commits June 21, 2026 23:00
Remove the incorrect usage file.
- Fix project version inconsistency: pass HJ_VERSION via CMake
- Add usage documentation to hjConfig.cmake.in
- Fix license: GPL-3.0-only -> GPL-3.0-or-later
- Remove unused dependencies: abseil, libiconv, libnice, vcpkg-cmake-config
- Add default HJ_VERSION in CMakeLists.txt
- Add BUILD_BENCH option
- Fix version inconsistency by passing HJ_VERSION via CMake
- Add usage documentation
- Remove unused dependencies
Install the Boost.Coroutine2 headers required by the unguarded core aggregate header and patch upstream headers so the aggregate header compiles cleanly with MSVC.

Also update the installed CMake config's core Boost component list and include the full fmt formatting declarations used by hj/testing/debugger.hpp.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c7b186e3-fc86-45e8-a903-bb87dfd375f5
[hanjingo-high-jump] Fix MSVC aggregate header integration
REF v${VERSION}
SHA512 e7bb70810dd23649039c3565d8617e1de343251d0f0db20ee8e1ed2edd25435d1db4cffa41a4b80827ccfbfd1c3e7ef7f365907eb9a893e8ac29189bd6d95f09
PATCHES
fix-msvc-core-headers.patch

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  1. If you're removing this patch it also needs to be deleted.
  2. According to GPT 5.6 Sol the patch is still required:

upstream v1.0.11 still omits NOMINMAX in hj/hj.hpp. Consequently, including <hj/hj.hpp> fails MSVC Release and Debug builds in hj/sync/counter.hpp because Windows min/max macros expand inside the header

[...]

counter.hpp(448): warning C4003: not enough arguments for function-like macro invocation 'max'
counter.hpp(448): error C2059: syntax error: '<parameter-list>'
counter.hpp(470): fatal error C1201: unable to continue after syntax error

Do you think it would be a good idea to add a test port since the MINMAX mess seems to continue to be a pain?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing this out! You are right, upstream v1.0.11 hasn't addressed the NOMINMAX / max() macro conflict on MSVC yet.

I have restored fix-msvc-core-headers.patch in portfile.cmake and updated the version database accordingly. I will also fix this directly in the upstream repo in the next release by using (std::numeric_limits<T>::max)() to prevent macro expansion.

{
"name": "hanjingo-high-jump",
"version": "1.0.10",
"version": "1.0.11",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also GPT 5.6 Sol:

The manifest and generated CMake package version report 1.0.11, but upstream v1.0.11's hj/version.hpp still defines:

#define HJ_MAJOR_VERSION 1
#define HJ_MINOR_VERSION 0
#define HJ_PATCH_VERSION 10

@BillyONeal
Billy O'Neal (BillyONeal) marked this pull request as draft August 7, 2026 00:52
@BillyONeal Billy O'Neal (BillyONeal) changed the title Ports/high jump [hanjingo-high-jump] Update to 1.0.11 Aug 7, 2026
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