File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
include ../common.mak
2
2
3
+ DIFF: =diff
4
+ SED: =sed
5
+ GDB: =gdb
6
+
3
7
TESTS =stderr_msg unittest_assert invalid_memory_operation unknown_gc static_dtor \
4
8
future_message refcounted rt_trap_exceptions_drt catch_in_finally \
5
9
message_with_null
@@ -9,7 +13,10 @@ ifeq ($(OS)-$(BUILD),linux-debug)
9
13
LINE_TRACE_DFLAGS: =-L--export-dynamic
10
14
endif
11
15
ifeq ($(OS ) ,linux)
12
- TESTS+ =rt_trap_exceptions_drt_gdb
16
+ # Only add this test if gdb is available.
17
+ ifneq (, $(shell which $(GDB)))
18
+ TESTS+=rt_trap_exceptions_drt_gdb
19
+ endif
13
20
endif
14
21
ifeq ($(OS ) -$(BUILD ) ,freebsd-debug)
15
22
TESTS+ =line_trace line_trace_21656 long_backtrace_trunc cpp_demangle
@@ -31,10 +38,6 @@ ifeq ($(BUILD),debug)
31
38
TESTS+ =assert_fail
32
39
endif
33
40
34
- DIFF: =diff
35
- SED: =sed
36
- GDB: =gdb
37
-
38
41
.PHONY : all clean
39
42
all : $(addprefix $(ROOT ) /,$(addsuffix .done,$(TESTS ) ) )
40
43
You can’t perform that action at this time.
0 commit comments