From d178c83d45ef5ff5caa6f8e92d461ada72c37bd2 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Thu, 29 May 2014 20:00:12 -0700 Subject: [PATCH] Fix unwinding_through_signal_frame test. I accidentally removed the compilcation of the test implementation file with special flags needed for the test to work. This change creates the impl as a library with those flags back. Bug: 14819262 Change-Id: Ib84fd26a7f4d40a0267d3ed686185b0abc5a3706 --- tests/Android.mk | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tests/Android.mk b/tests/Android.mk index d753acc38..b75964a05 100644 --- a/tests/Android.mk +++ b/tests/Android.mk @@ -86,7 +86,6 @@ libBionicStandardTests_src_files := \ signal_test.cpp \ stack_protector_test.cpp \ stack_unwinding_test.cpp \ - stack_unwinding_test_impl.c \ stdatomic_test.cpp \ stdint_test.cpp \ stdio_test.cpp \ @@ -121,6 +120,9 @@ libBionicStandardTests_cppflags := \ libBionicStandardTests_ldlibs_host := \ -lrt \ +libBionicStandardTests_whole_static_libraries := \ + libBionicUnwindTest \ + module := libBionicStandardTests module_tag := optional build_type := target @@ -129,6 +131,25 @@ include $(LOCAL_PATH)/Android.build.mk build_type := host include $(LOCAL_PATH)/Android.build.mk +# ----------------------------------------------------------------------------- +# Special stack unwinding test library compiled with special flags. +# ----------------------------------------------------------------------------- +libBionicUnwindTest_cflags := \ + $(test_cflags) \ + -fexceptions \ + -fnon-call-exceptions \ + +libBionicUnwindTest_src_files := \ + stack_unwinding_test_impl.c \ + +module := libBionicUnwindTest +module_tag := optional +build_type := target +build_target := STATIC_TEST_LIBRARY +include $(LOCAL_PATH)/Android.build.mk +build_type := host +include $(LOCAL_PATH)/Android.build.mk + # ----------------------------------------------------------------------------- # Fortify tests. # -----------------------------------------------------------------------------