Add a dependency on the .dir file to make sure that the directory

is created before the native exports file is built in a parallel build.

llvm-svn: 101413
This commit is contained in:
Dan Gohman 2010-04-15 22:46:27 +00:00
parent c843326d60
commit ace8648850

View 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)