diff options
Diffstat (limited to 'ports/boost-context')
| -rw-r--r-- | ports/boost-context/b2-options.cmake.in | 15 | ||||
| -rw-r--r-- | ports/boost-context/vcpkg.json | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/ports/boost-context/b2-options.cmake.in b/ports/boost-context/b2-options.cmake.in index 30933f499..419a2b1cb 100644 --- a/ports/boost-context/b2-options.cmake.in +++ b/ports/boost-context/b2-options.cmake.in @@ -12,3 +12,18 @@ if(@VCPKG_TARGET_IS_OSX@) binary-format=mach-o
)
endif()
+
+if(@VCPKG_TARGET_IS_ANDROID@)
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
+ list(APPEND B2_OPTIONS
+ abi=aapcs
+ )
+ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
+ list(APPEND B2_OPTIONS
+ abi=sysv
+ )
+ endif()
+ list(APPEND B2_OPTIONS
+ binary-format=elf
+ )
+endif()
diff --git a/ports/boost-context/vcpkg.json b/ports/boost-context/vcpkg.json index b0879e26a..22f652b55 100644 --- a/ports/boost-context/vcpkg.json +++ b/ports/boost-context/vcpkg.json @@ -1,7 +1,7 @@ { "name": "boost-context", "version-string": "1.75.0", - "port-version": 3, + "port-version": 4, "description": "Boost context module", "homepage": "https://github.com/boostorg/context", "supports": "!uwp & !emscripten", |
