Skip to content

Commit

Permalink
Prepare for Crypto++ 8.2 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Feb 6, 2021
1 parent 63d2ec0 commit 5e15efb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ LOCAL_CPPFLAGS := -Wall
LOCAL_CPP_FEATURES := rtti exceptions
LOCAL_LDFLAGS := -Wl,--exclude-libs,ALL -Wl,--as-needed

# Intel machines and AVX2
# Clang workarounds for Intel machines
ifeq ($(TARGET_ARCH),x86)
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_AVX2
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_MIXED_ASM -DCRYPTOPP_DISABLE_AVX2
endif
ifeq ($(TARGET_ARCH),x86_64)
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_AVX2
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_MIXED_ASM -DCRYPTOPP_DISABLE_AVX2
endif

LOCAL_EXPORT_CFLAGS := $(LOCAL_CFLAGS)
Expand All @@ -164,12 +164,12 @@ LOCAL_SRC_FILES := $(addprefix $(CRYPTOPP_PATH),$(CRYPTOPP_LIB_FILES))
LOCAL_CPPFLAGS := -Wall
LOCAL_CPP_FEATURES := rtti exceptions

# Intel machines and AVX2
# Clang workarounds for Intel machines
ifeq ($(TARGET_ARCH),x86)
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_AVX2
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_MIXED_ASM -DCRYPTOPP_DISABLE_AVX2
endif
ifeq ($(TARGET_ARCH),x86_64)
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_AVX2
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_MIXED_ASM -DCRYPTOPP_DISABLE_AVX2
endif

LOCAL_EXPORT_CFLAGS := $(LOCAL_CFLAGS)
Expand Down

0 comments on commit 5e15efb

Please sign in to comment.