-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[DiscordCoreAPI] to v2.0.8 and [Jsonifier] to v0.9.98 #42386
Open
RealTimeChris
wants to merge
1
commit into
microsoft:master
Choose a base branch
from
RealTimeChris:master
base: master
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.
+20
−27
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -6,25 +6,12 @@ vcpkg_from_github( | |||||||
OUT_SOURCE_PATH SOURCE_PATH | ||||||||
REPO RealTimeChris/DiscordCoreAPI | ||||||||
REF "v${VERSION}" | ||||||||
SHA512 344e960491e17e9626f6ab4a42f28fe59842c0c15cf32ef2508e850099105667c651feaa6dd642207413fbeac43283310fe2b9a98a2ebfd4a49716da43e5cade | ||||||||
SHA512 89878716432457bea78e5fc6c29f223f78a733897993596db278fd32afd45b31b0b665f478cb80938527da9325d5afa964d52ea405d1c4be46c79ed690038790 | ||||||||
HEAD_REF main | ||||||||
) | ||||||||
|
||||||||
# discordcoreapi consumes extreme amounts of memory (>9GB per .cpp file). With our default | ||||||||
# concurrency values this causes hanging and/or OOM killing on Linux build machines and | ||||||||
# warnings on the Windows machines like: | ||||||||
# #[warning]Free memory is lower than 5%; Currently used: 99.99% | ||||||||
# #[warning]Free memory is lower than 5%; Currently used: 99.99% | ||||||||
# #[warning]Free memory is lower than 5%; Currently used: 99.99% | ||||||||
# Cut the requested concurrency in quarter to avoid this. | ||||||||
if(VCPKG_CONCURRENCY GREATER 4) | ||||||||
math(EXPR VCPKG_CONCURRENCY "${VCPKG_CONCURRENCY} / 4") | ||||||||
endif() | ||||||||
|
||||||||
vcpkg_cmake_configure( | ||||||||
SOURCE_PATH "${SOURCE_PATH}" | ||||||||
# Due to CMake/DCADetectArchitecture.cmake invoking a sub-CMake and using the source tree as the target | ||||||||
DISABLE_PARALLEL_CONFIGURE | ||||||||
) | ||||||||
|
||||||||
vcpkg_cmake_install() | ||||||||
|
@@ -37,4 +24,4 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") | |||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") | ||||||||
endif() | ||||||||
|
||||||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.md") | ||||||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.md") | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
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
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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,17 +1,15 @@ | ||||||
vcpkg_from_github( | ||||||
OUT_SOURCE_PATH SOURCE_PATH | ||||||
REPO realtimechris/jsonifier | ||||||
REF "v${VERSION}" | ||||||
SHA512 6168378a117850297fcda78853a0babd0ce7e0ca21b3e8c276acb7e75e04d85ed8909061a62e3324c309fe9e31bc59d89ea06e47853b50481843273e95172ab8 | ||||||
REF "v${VERSION}" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
SHA512 0e08b5114a09f3e5cf41d245358baadecdd1559deba16a71dbb5a953882d9fc07587e7b27b4fbcbf810f8b2554c6afa1038b24447da51ea266b2557ff0d7a0d2 | ||||||
HEAD_REF main | ||||||
) | ||||||
|
||||||
set(VCPKG_BUILD_TYPE release) # header-only | ||||||
|
||||||
vcpkg_cmake_configure( | ||||||
SOURCE_PATH "${SOURCE_PATH}" | ||||||
# Due to CMake/JsonifierDetectArchitecture.cmake invoking a sub-CMake and using the source tree as the target | ||||||
DISABLE_PARALLEL_CONFIGURE | ||||||
) | ||||||
|
||||||
vcpkg_cmake_install() | ||||||
|
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference, testing with 16 CPUs, peak memory exceeded 24G with 16 processes.
Please keep this part to prevent possible OOM. (Even if limited it, the CPU usage is still close to 100%)