Skip to content

Commit

Permalink
[capnproto] Support Windows on ARM64. (#42697)
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-tsirpanis authored Dec 16, 2024
1 parent d00bfc5 commit a09e4e8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ports/capnproto/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ vcpkg_from_github(
undef-KJ_USE_EPOLL-for-ANDROID_PLATFORM-23.patch
)

if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
# In ARM64 it fails without /bigobj
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} /bigobj")
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} /bigobj")
endif()

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
"openssl" OPENSSL_FEATURE
Expand Down
4 changes: 2 additions & 2 deletions ports/capnproto/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "capnproto",
"version": "1.0.2",
"port-version": 1,
"port-version": 2,
"description": "Data interchange format and capability-based RPC system",
"homepage": "https://capnproto.org/",
"license": "MIT",
"supports": "!windows | (!uwp & !arm)",
"supports": "!windows | (!uwp & !arm32)",
"dependencies": [
{
"name": "vcpkg-cmake",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@
},
"capnproto": {
"baseline": "1.0.2",
"port-version": 1
"port-version": 2
},
"capstone": {
"baseline": "5.0.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/capnproto.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "34d3e2f7eaa026d154cec3576cffefe6aec1cda1",
"version": "1.0.2",
"port-version": 2
},
{
"git-tree": "38a65f51f26928a3ea7bed90ada2ec4081091a6b",
"version": "1.0.2",
Expand Down

0 comments on commit a09e4e8

Please sign in to comment.