mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-06 04:58:22 +00:00
Enable CRYPTOPP_DISABLE_MIXED_ASM in config_asm.h
This commit is contained in:
parent
85f16efc32
commit
b64a920bc9
13
GNUmakefile
13
GNUmakefile
@ -408,11 +408,14 @@ ifeq ($(DETECT_FEATURES),1)
|
||||
# Most Clang cannot handle mixed asm with positional arguments, where the
|
||||
# body is Intel style with no prefix and the templates are AT&T style.
|
||||
# Also see https://bugs.llvm.org/show_bug.cgi?id=39895 .
|
||||
TPROG = TestPrograms/test_mixed_asm.cxx
|
||||
HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l)
|
||||
ifneq ($(strip $(HAVE_OPT)),0)
|
||||
CXXFLAGS += -DCRYPTOPP_DISABLE_MIXED_ASM
|
||||
endif
|
||||
|
||||
# CRYPTOPP_DISABLE_MIXED_ASM is now being added in config_asm.h for all
|
||||
# Clang compilers. This test will need to be re-enabled if Clang fixes it.
|
||||
#TPROG = TestPrograms/test_mixed_asm.cxx
|
||||
#HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l)
|
||||
#ifneq ($(strip $(HAVE_OPT)),0)
|
||||
# CXXFLAGS += -DCRYPTOPP_DISABLE_MIXED_ASM
|
||||
#endif
|
||||
|
||||
# DETECT_FEATURES
|
||||
endif
|
||||
|
@ -358,11 +358,14 @@ ifeq ($(DETECT_FEATURES),1)
|
||||
# Most Clang cannot handle mixed asm with positional arguments, where the
|
||||
# body is Intel style with no prefix and the templates are AT&T style.
|
||||
# Also see https://bugs.llvm.org/show_bug.cgi?id=39895 .
|
||||
TPROG = TestPrograms/test_mixed_asm.cxx
|
||||
HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l)
|
||||
ifneq ($(strip $(HAVE_OPT)),0)
|
||||
CXXFLAGS += -DCRYPTOPP_DISABLE_MIXED_ASM
|
||||
endif
|
||||
|
||||
# CRYPTOPP_DISABLE_MIXED_ASM is now being added in config_asm.h for all
|
||||
# Clang compilers. This test will need to be re-enabled if Clang fixes it.
|
||||
#TPROG = TestPrograms/test_mixed_asm.cxx
|
||||
#HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l)
|
||||
#ifneq ($(strip $(HAVE_OPT)),0)
|
||||
# CXXFLAGS += -DCRYPTOPP_DISABLE_MIXED_ASM
|
||||
#endif
|
||||
|
||||
# DETECT_FEATURES
|
||||
endif
|
||||
|
@ -38,6 +38,12 @@
|
||||
// Also see https://bugs.llvm.org/show_bug.cgi?id=39895 .
|
||||
// #define CRYPTOPP_DISABLE_MIXED_ASM 1
|
||||
|
||||
#ifndef CRYPTOPP_DISABLE_MIXED_ASM
|
||||
# if defined(__clang__)
|
||||
# define CRYPTOPP_DISABLE_MIXED_ASM 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS is no longer honored. It
|
||||
// was removed at https://github.com/weidai11/cryptopp/issues/682
|
||||
// #define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS 1
|
||||
|
@ -24,6 +24,8 @@
|
||||
#define CRYPTOPP_REVISION 0
|
||||
#define CRYPTOPP_VERSION 830
|
||||
|
||||
// Compiler version macros
|
||||
|
||||
#ifdef __GNUC__
|
||||
# define CRYPTOPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
||||
#endif
|
||||
@ -33,6 +35,7 @@
|
||||
#endif
|
||||
|
||||
// Apple and LLVM's Clang. Apple Clang version 7.0 roughly equals LLVM Clang version 3.7
|
||||
// Also see https://gist.github.com/yamaya/2924292
|
||||
#if defined(__clang__) && defined(__apple_build_version__)
|
||||
# define CRYPTOPP_APPLE_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
|
||||
#elif defined(__clang__)
|
||||
|
Loading…
x
Reference in New Issue
Block a user