Commit dedbe13f by Ian Lance Taylor

libbacktrace: don't fail tests if dwz fails

* Makefile.am (%_dwz): If dwz fails, use uncompressed debug info. * Makefile.in: Regenerate.
parent 09665040
...@@ -304,9 +304,13 @@ if HAVE_DWZ ...@@ -304,9 +304,13 @@ if HAVE_DWZ
rm -f $@ $@_common.debug rm -f $@ $@_common.debug
cp $< $@_1 cp $< $@_1
cp $< $@_2 cp $< $@_2
$(DWZ) -m $@_common.debug $@_1 $@_2 if $(DWZ) -m $@_common.debug $@_1 $@_2; then \
rm -f $@_2 rm -f $@_2; \
mv $@_1 $@ mv $@_1 $@; \
else \
echo "Ignoring dwz errors, assuming that test passes"; \
cp $< $@; \
fi
TESTS += btest_dwz TESTS += btest_dwz
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
@SET_MAKE@ @SET_MAKE@
# Makefile.am -- Backtrace Makefile. # Makefile.am -- Backtrace Makefile.
# Copyright (C) 2012-2020 Free Software Foundation, Inc. # Copyright (C) 2012-2021 Free Software Foundation, Inc.
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are # modification, are permitted provided that the following conditions are
...@@ -2459,9 +2459,13 @@ uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES ...@@ -2459,9 +2459,13 @@ uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
@HAVE_DWZ_TRUE@@NATIVE_TRUE@ rm -f $@ $@_common.debug @HAVE_DWZ_TRUE@@NATIVE_TRUE@ rm -f $@ $@_common.debug
@HAVE_DWZ_TRUE@@NATIVE_TRUE@ cp $< $@_1 @HAVE_DWZ_TRUE@@NATIVE_TRUE@ cp $< $@_1
@HAVE_DWZ_TRUE@@NATIVE_TRUE@ cp $< $@_2 @HAVE_DWZ_TRUE@@NATIVE_TRUE@ cp $< $@_2
@HAVE_DWZ_TRUE@@NATIVE_TRUE@ $(DWZ) -m $@_common.debug $@_1 $@_2 @HAVE_DWZ_TRUE@@NATIVE_TRUE@ if $(DWZ) -m $@_common.debug $@_1 $@_2; then \
@HAVE_DWZ_TRUE@@NATIVE_TRUE@ rm -f $@_2 @HAVE_DWZ_TRUE@@NATIVE_TRUE@ rm -f $@_2; \
@HAVE_DWZ_TRUE@@NATIVE_TRUE@ mv $@_1 $@ @HAVE_DWZ_TRUE@@NATIVE_TRUE@ mv $@_1 $@; \
@HAVE_DWZ_TRUE@@NATIVE_TRUE@ else \
@HAVE_DWZ_TRUE@@NATIVE_TRUE@ echo "Ignoring dwz errors, assuming that test passes"; \
@HAVE_DWZ_TRUE@@NATIVE_TRUE@ cp $< $@; \
@HAVE_DWZ_TRUE@@NATIVE_TRUE@ fi
@NATIVE_TRUE@edtest2_build.c: gen_edtest2_build; @true @NATIVE_TRUE@edtest2_build.c: gen_edtest2_build; @true
@NATIVE_TRUE@gen_edtest2_build: $(srcdir)/edtest2.c @NATIVE_TRUE@gen_edtest2_build: $(srcdir)/edtest2.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment