Skip to content

Commit

Permalink
Merge pull request swiftlang#178 from dgrove-oss/depend-on-swiftc
Browse files Browse the repository at this point in the history
Add dependency on swiftc for %.o.%.swift rules
  • Loading branch information
MadCoder authored Sep 26, 2016
2 parents 152985f + 27c8df9 commit ba7802e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,17 @@ if DISPATCH_ENABLE_OPTIMIZATION
SWIFTC_FLAGS+=-O
endif

$(abs_builddir)/swift/%.o: $(abs_srcdir)/swift/%.swift
$(abs_builddir)/swift/%.o: $(abs_srcdir)/swift/%.swift $(SWIFTC)
@rm -f $@
$(SWIFTC) -frontend -c $(SWIFT_ABS_SRC_FILES) -primary-file $< \
$(SWIFTC_FLAGS) -module-name Dispatch -module-link-name dispatch \
-o $@ -emit-module-path $@.~partial.swiftmodule \
-emit-module-doc-path $@.~partial.swiftdoc -emit-dependencies-path $@.d \
-emit-reference-dependencies-path $@.swiftdeps \
-module-cache-path $(top_builddir)

$(abs_builddir)/swift/Dispatch.swiftmodule: $(SWIFT_ABS_SRC_FILES)
$(abs_builddir)/swift/Dispatch.swiftmodule: $(SWIFT_ABS_SRC_FILES) $(SWIFTC)
@rm -f $@
$(SWIFTC) -frontend -emit-module $(SWIFT_OBJ_FILES:%=%.~partial.swiftmodule) \
$(SWIFTC_FLAGS) -module-cache-path $(top_builddir) -module-link-name dispatch \
-o $@ -emit-module-doc-path $(@:%.swiftmodule=%.swiftdoc)
Expand Down

0 comments on commit ba7802e

Please sign in to comment.