Remove a.out artifacts whenever feature tests run (GH #738)
parent
f91584a7bc
commit
499a5e289d
24
GNUmakefile
24
GNUmakefile
|
|
@ -297,6 +297,9 @@ ifeq ($(findstring -DCRYPTOPP_DISABLE_ASM,$(CXXFLAGS)),)
|
||||||
else
|
else
|
||||||
CXXFLAGS += -DCRYPTOPP_DISABLE_SSE2
|
CXXFLAGS += -DCRYPTOPP_DISABLE_SSE2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# https://github.com/weidai11/cryptopp/issues/738
|
||||||
|
UNUSED := $(shell rm -f a.out && rm -rf *.out.dSYM/)
|
||||||
|
|
||||||
# CRYPTOPP_DISABLE_ASM
|
# CRYPTOPP_DISABLE_ASM
|
||||||
endif
|
endif
|
||||||
|
|
@ -411,6 +414,9 @@ ifeq ($(findstring -DCRYPTOPP_DISABLE_ASM,$(CXXFLAGS)),)
|
||||||
CXXFLAGS += -DCRYPTOPP_DISABLE_SSE2
|
CXXFLAGS += -DCRYPTOPP_DISABLE_SSE2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# https://github.com/weidai11/cryptopp/issues/738
|
||||||
|
UNUSED := $(shell rm -f a.out && rm -rf *.out.dSYM/)
|
||||||
|
|
||||||
# CRYPTOPP_DISABLE_ASM
|
# CRYPTOPP_DISABLE_ASM
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -474,6 +480,9 @@ ifeq ($(IS_ARM32)$(IS_NEON),11)
|
||||||
CXXFLAGS += -DCRYPTOPP_DISABLE_ASM
|
CXXFLAGS += -DCRYPTOPP_DISABLE_ASM
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# https://github.com/weidai11/cryptopp/issues/738
|
||||||
|
UNUSED := $(shell rm -f a.out && rm -rf *.out.dSYM/)
|
||||||
|
|
||||||
# IS_NEON
|
# IS_NEON
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -536,6 +545,9 @@ ifeq ($(IS_ARMV8),1)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# https://github.com/weidai11/cryptopp/issues/738
|
||||||
|
UNUSED := $(shell rm -f a.out && rm -rf *.out.dSYM/)
|
||||||
|
|
||||||
# IS_ARMV8
|
# IS_ARMV8
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -707,6 +719,9 @@ ifeq ($(findstring -DCRYPTOPP_DISABLE_ASM,$(CXXFLAGS)),)
|
||||||
CXXFLAGS += -DCRYPTOPP_DISABLE_POWER8
|
CXXFLAGS += -DCRYPTOPP_DISABLE_POWER8
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# https://github.com/weidai11/cryptopp/issues/738
|
||||||
|
UNUSED := $(shell rm -f a.out && rm -rf *.out.dSYM/)
|
||||||
|
|
||||||
# CRYPTOPP_DISABLE_ASM
|
# CRYPTOPP_DISABLE_ASM
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -1135,6 +1150,13 @@ clean:
|
||||||
@-$(RM) -r *.exe.dSYM/ *.dylib.dSYM/ *.out.dSYM/
|
@-$(RM) -r *.exe.dSYM/ *.dylib.dSYM/ *.out.dSYM/
|
||||||
@-$(RM) -r cov-int/
|
@-$(RM) -r cov-int/
|
||||||
|
|
||||||
|
# Feature testing runs the compiler and produces an [unwanted] a.out artifact.
|
||||||
|
# If a.out is created using privileges then it will cause problems later if
|
||||||
|
# the makefile is run again without privileges. This rule cleans a.out.
|
||||||
|
.PHONY: aout-clean
|
||||||
|
aout-clean:
|
||||||
|
@-$(RM) -r a.out *.out.dSYM/
|
||||||
|
|
||||||
.PHONY: autotools-clean
|
.PHONY: autotools-clean
|
||||||
autotools-clean:
|
autotools-clean:
|
||||||
@-$(RM) -f configure.ac configure configure.in Makefile.am Makefile.in Makefile
|
@-$(RM) -f configure.ac configure configure.in Makefile.am Makefile.in Makefile
|
||||||
|
|
@ -1149,7 +1171,7 @@ cmake-clean:
|
||||||
@-$(RM) -rf cmake_build/
|
@-$(RM) -rf cmake_build/
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
distclean: clean autotools-clean cmake-clean
|
distclean: clean autotools-clean cmake-clean aout-clean
|
||||||
-$(RM) adhoc.cpp adhoc.cpp.copied GNUmakefile.deps benchmarks.html cryptest.txt
|
-$(RM) adhoc.cpp adhoc.cpp.copied GNUmakefile.deps benchmarks.html cryptest.txt
|
||||||
@-$(RM) cryptest-*.txt cryptopp.tgz libcryptopp.pc *.o *.bc *.ii *~
|
@-$(RM) cryptest-*.txt cryptopp.tgz libcryptopp.pc *.o *.bc *.ii *~
|
||||||
@-$(RM) -r cryptlib.lib cryptest.exe *.suo *.sdf *.pdb Win32/ x64/ ipch/
|
@-$(RM) -r cryptlib.lib cryptest.exe *.suo *.sdf *.pdb Win32/ x64/ ipch/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue