summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-18 17:52:37 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-18 17:52:37 +0000
commite3b3d7a5e4ff7b1ef8027350b564847e40849a5d (patch)
treeec253b9481c5329e0ca45821c81b5e0cee07e84e
parentff24e1aa4c4f3e5caab51cf0a1bcc693309cd7c6 (diff)
downloadbcm5719-llvm-e3b3d7a5e4ff7b1ef8027350b564847e40849a5d.tar.gz
bcm5719-llvm-e3b3d7a5e4ff7b1ef8027350b564847e40849a5d.zip
Fix race condition in creating objdir.
llvm-svn: 93730
-rw-r--r--clang/include/clang/Basic/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/include/clang/Basic/Makefile b/clang/include/clang/Basic/Makefile
index b85eb0725ef..48f7f9d8cc7 100644
--- a/clang/include/clang/Basic/Makefile
+++ b/clang/include/clang/Basic/Makefile
@@ -11,14 +11,12 @@ include $(LEVEL)/Makefile.common
INPUT_TDS = $(wildcard $(PROJ_SRC_DIR)/Diagnostic*.td)
-$(ObjDir)/Diagnostic%Kinds.inc.tmp : Diagnostic.td Diagnostic%Kinds.td $(TBLGEN)
+$(ObjDir)/Diagnostic%Kinds.inc.tmp : Diagnostic.td Diagnostic%Kinds.td $(TBLGEN) $(ObjDir)/.dir
$(Echo) "Building Clang $(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) diagnostic tables with tblgen"
- $(Verb) -$(MKDIR) $(@D)
$(Verb) $(TableGen) -gen-clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) -o $(call SYSPATH, $@) $<
-$(ObjDir)/DiagnosticGroups.inc.tmp : Diagnostic.td DiagnosticGroups.td $(INPUT_TDS) $(TBLGEN)
+$(ObjDir)/DiagnosticGroups.inc.tmp : Diagnostic.td DiagnosticGroups.td $(INPUT_TDS) $(TBLGEN) $(ObjDir)/.dir
$(Echo) "Building Clang diagnostic groups with tblgen"
- $(Verb) -$(MKDIR) $(@D)
$(Verb) $(TableGen) -gen-clang-diag-groups -o $(call SYSPATH, $@) $<
OpenPOWER on IntegriCloud