]> granicus.if.org Git - clang/commitdiff
Fix race condition in creating objdir.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 18 Jan 2010 17:52:37 +0000 (17:52 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 18 Jan 2010 17:52:37 +0000 (17:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93730 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Makefile

index b85eb0725ef0fd9b4934c81fa2d00abaa6a16e3f..48f7f9d8cc7b033df92bc2368263d3eb713387ed 100644 (file)
@@ -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, $@) $<