Fix PR3667
[oota-llvm.git] / test / Makefile
index b6067c372fae438bb0f3e0dacfa6889f3790abfc..7ce4086f1af4743841890dcf24d8100cca34b988 100644 (file)
@@ -81,6 +81,13 @@ endif
 clean::
        $(RM) -rf `find $(LLVM_OBJ_ROOT)/test -name Output -type d -print`
 
+# dsymutil is used on the Darwin to manipulate DWARF debugging information.
+ifeq ($(OS),Darwin)
+DSYMUTIL=dsymutil
+else
+DSYMUTIL=true
+endif
+
 FORCE:
 
 site.exp: FORCE
@@ -112,6 +119,7 @@ site.exp: FORCE
        @echo 'set valgrind "$(VALGRIND)"' >> site.tmp
        @echo 'set grep "$(GREP)"' >>site.tmp
        @echo 'set gas "$(GAS)"' >>site.tmp
+       @echo 'set llvmdsymutil "$(DSYMUTIL)"' >>site.tmp
        @echo '## All variables above are generated by configure. Do Not Edit ## ' >>site.tmp
        @test ! -f site.exp || \
        sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp