Author: ddunbar
Date: Mon Jan 18 11:52:37 2010
New Revision: 93730

URL: http://llvm.org/viewvc/llvm-project?rev=93730&view=rev
Log:
Fix race condition in creating objdir.

Modified:
    cfe/trunk/include/clang/Basic/Makefile

Modified: cfe/trunk/include/clang/Basic/Makefile
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Makefile?rev=93730&r1=93729&r2=93730&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/Makefile (original)
+++ cfe/trunk/include/clang/Basic/Makefile Mon Jan 18 11:52:37 2010
@@ -11,14 +11,12 @@
 
 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, $@) $<
 
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to