Create build directory before operating on it.

This commit is contained in:
Axel Naumann 2014-01-22 15:54:01 +01:00 committed by sftnight
parent 10464f6fe1
commit 702b719bbb

View File

@ -129,6 +129,7 @@ $(call stripsrc,$(CLINGDIR)/%.o): $(CLINGDIR)/%.cpp $(LLVMDEP)
$(CXX) $(OPT) $(subst -fno-exceptions,$(CLINGEXCCXXFLAGS),$(CLINGCXXFLAGS)) $(CXXOUT)$@ -c $<
$(CLINGCOMPDH): FORCE $(LLVMDEP)
@mkdir -p $(dir $@)
@echo '#define LLVM_CXX "$(CXX) $(OPT) $(CLINGCXXFLAGS)"' > $@_tmp
@diff -q $@_tmp $@ > /dev/null 2>&1 || mv $@_tmp $@
@rm -f $@_tmp