diff options
Diffstat (limited to 'ports/aws-c-common')
| -rw-r--r-- | ports/aws-c-common/CONTROL | 5 | ||||
| -rw-r--r-- | ports/aws-c-common/disable_outline_atomics.patch | 18 | ||||
| -rw-r--r-- | ports/aws-c-common/portfile.cmake | 3 |
3 files changed, 23 insertions, 3 deletions
diff --git a/ports/aws-c-common/CONTROL b/ports/aws-c-common/CONTROL index 2439c0c65..030d99ee5 100644 --- a/ports/aws-c-common/CONTROL +++ b/ports/aws-c-common/CONTROL @@ -1,5 +1,6 @@ -Source: aws-c-common
+Source: aws-c-common Version: 0.4.56 +Port-Version: 1 Homepage: https://github.com/awslabs/aws-c-common -Description: AWS common library for C
+Description: AWS common library for C Supports: !(arm|uwp)
\ No newline at end of file diff --git a/ports/aws-c-common/disable_outline_atomics.patch b/ports/aws-c-common/disable_outline_atomics.patch new file mode 100644 index 000000000..b3c9e109f --- /dev/null +++ b/ports/aws-c-common/disable_outline_atomics.patch @@ -0,0 +1,18 @@ +diff --git a/cmake/AwsCFlags.cmake b/cmake/AwsCFlags.cmake +--- a/cmake/AwsCFlags.cmake (revision 4a21a1c0757083a16497fea27886f5f20ccdf334) ++++ b/cmake/AwsCFlags.cmake (date 1618758078727) +@@ -70,9 +70,11 @@ + + # -moutline-atomics generates code for both older load/store exclusive atomics and also + # Arm's Large System Extensions (LSE) which scale substantially better on large core count systems +- check_c_compiler_flag(-moutline-atomics HAS_MOUTLINE_ATOMICS) +- if (HAS_MOUTLINE_ATOMICS) +- list(APPEND AWS_C_FLAGS -moutline-atomics) ++ if(NOT EMSCRIPTEN AND NOT ANDROID) ++ check_c_compiler_flag(-moutline-atomics HAS_MOUTLINE_ATOMICS) ++ if (HAS_MOUTLINE_ATOMICS) ++ list(APPEND AWS_C_FLAGS -moutline-atomics) ++ endif() + endif() + endif() + diff --git a/ports/aws-c-common/portfile.cmake b/ports/aws-c-common/portfile.cmake index f3704ef05..12efebc87 100644 --- a/ports/aws-c-common/portfile.cmake +++ b/ports/aws-c-common/portfile.cmake @@ -1,13 +1,14 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO awslabs/aws-c-common
- REF 4a21a1c0757083a16497fea27886f5f20ccdf334 # v0.4.56 + REF 4a21a1c0757083a16497fea27886f5f20ccdf334 # v0.4.56
SHA512 68898a8ac15d5490f45676eabfbe0df9e45370a74c543a28909fd0d85fed48dfcf4bcd6ea2d01d1a036dd352e2e4e0b08c48c63ab2a2b477fe150b46a827136e
HEAD_REF master
PATCHES
disable-error-4068.patch # This patch fixes dependency port compilation failure
disable-internal-crt-option.patch # Disable internal crt option because vcpkg contains crt processing flow
fix-cmake-target-path.patch # Shared libraries and static libraries are not built at the same time
+ disable_outline_atomics.patch # Disables -moutline-atomics flag which is not supported for wasm32 and Android
)
vcpkg_configure_cmake(
|
