Add a dependency on the .dir file to make sure that the directory
authorDan Gohman <gohman@apple.com>
Thu, 15 Apr 2010 22:46:27 +0000 (22:46 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 15 Apr 2010 22:46:27 +0000 (22:46 +0000)
is created before the native exports file is built in a parallel build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101413 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index f4a1bc95db1afc1f5fb065ed563f37f46e082c48..0c5d9066a361a9d87f03f4e13945b34c1addf144 100644 (file)
@@ -979,7 +979,7 @@ ifdef EXPORTED_SYMBOL_FILE
 ifeq ($(HOST_OS),Darwin)
 # Darwin convention prefixes symbols with underscores.
 NativeExportsFile := $(ObjDir)/$(EXPORTED_SYMBOL_FILE).sed
-$(NativeExportsFile): $(EXPORTED_SYMBOL_FILE)
+$(NativeExportsFile): $(EXPORTED_SYMBOL_FILE) $(ObjDir)/.dir
        $(Verb) sed -e 's/[[:<:]]/_/' < $< > $@
 clean-local::
        -$(Verb) $(RM) -f $(NativeExportsFile)