Fix test 'make clean' target for empty $(DSYM) on FreeBSD
authorEd Maste <emaste@freebsd.org>
Fri, 7 Mar 2014 17:20:50 +0000 (17:20 +0000)
committerEd Maste <emaste@freebsd.org>
Fri, 7 Mar 2014 17:20:50 +0000 (17:20 +0000)
commit0990e05d43b40ac8c1242610db0029cc12be45e7
treea3ea0cf0d946d4747d183b09bb2383ee6da6d204
parente7fbde8cb6539386f37f6c5cc294a82d9a138844
Fix test 'make clean' target for empty $(DSYM) on FreeBSD

A freebsd issue with rm prevents '[g]make clean' from working if $(DSYM)
is empty (fts_open(3) fails if passed an empty argument).

To work around this, simplify the clean target by using three separate
rm invocations: one for the common files, one for the case of non-empty
$(DYLIB_NAME), and one for non-empty $(DSYM).

Issue diagnosed (and reported to FreeBSD) by John Wolfe.

llvm.org/pr17933

llvm-svn: 203253
lldb/test/functionalities/inferior-changed/TestInferiorChanged.py
lldb/test/make/Makefile.rules