Skip to content

Commit

Permalink
Update for upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jul 10, 2014
1 parent f3f193c commit e9644d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,6 +1,7 @@
env:
global:
- secure: ffCiAwT3mkRQ57yTyTKUV4nRsnsdDuTSXbwSFpNg/AXLn6KTt35wpp2kbKTUhU4fUikpoKh30+TMiXp1vhc7XSUo/E06JyjccRIE6oXas07NcYhYd0JRlPPWKZU8q33jvFYFB7U63vY/65tGk+wlrWm7NFyqqXwGMuysd7XT1tE=
- LD_LIBRARY_PATH: /usr/local/lib
install:
- curl -O http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz
- tar xfz rust-nightly-x86_64-unknown-linux-gnu.tar.gz
Expand Down
12 changes: 7 additions & 5 deletions Makefile.in
Expand Up @@ -2,6 +2,8 @@ RUSTC := rustc
BUILDDIR := build
RUSTFLAGS := -O --cfg ndebug
INSTALL_DIR := %PREFIX%
LD_LIBRARY_PATH := $(LD_LIBRARY_PATH):build
ENV := LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) DYLD_LIBRARY_PATH=$(LD_LIBRARY_PATH)

PHF_LIB := phf/src/lib.rs
PHF := $(foreach file,$(shell $(RUSTC) --print-file-name $(PHF_LIB)),$(BUILDDIR)/$(file))
Expand All @@ -22,14 +24,14 @@ $(BUILDDIR):
.NOTPARALLEL: $(PHF)

$(PHF): $(PHF_LIB) | $(BUILDDIR)
$(RUSTC) $(RUSTFLAGS) --dep-info $(BUILDDIR)/phf.d --out-dir $(@D) $<
$(ENV) $(RUSTC) $(RUSTFLAGS) --dep-info $(BUILDDIR)/phf.d --out-dir $(@D) $<

$(PHF_MAC): $(PHF_MAC_LIB) $(PHF) | $(BUILDDIR)
$(RUSTC) $(RUSTFLAGS) --dep-info $(BUILDDIR)/phf_mac.d --out-dir $(@D) \
$(ENV) $(RUSTC) $(RUSTFLAGS) --dep-info $(BUILDDIR)/phf_mac.d --out-dir $(@D) \
-L $(BUILDDIR) $<

$(PHF_TEST): $(PHF_TEST_MAIN) $(PHF) $(PHF_MAC) | $(BUILDDIR)
$(RUSTC) --test $(RUSTFLAGS) -L $(BUILDDIR) \
$(ENV) $(RUSTC) --test $(RUSTFLAGS) -L $(BUILDDIR) \
--dep-info $(BUILDDIR)/phf_test.d --out-dir $(@D) $<

doc-test: $(PHF) $(PHF_MAC)
Expand All @@ -39,8 +41,8 @@ check: $(PHF_TEST) doc-test
$(PHF_TEST)

doc: $(PHF)
rustdoc $(PHF_LIB)
rustdoc -L $(BUILDDIR) $(PHF_MAC_LIB)
$(ENV) rustdoc $(PHF_LIB)
$(ENV) rustdoc -L $(BUILDDIR) $(PHF_MAC_LIB)

install: $(PHF) $(PHF_MAC)
install $(PHF) $(INSTALL_DIR)
Expand Down
2 changes: 1 addition & 1 deletion phf_mac/src/lib.rs
Expand Up @@ -257,7 +257,7 @@ fn has_duplicates(cx: &mut ExtCtxt, sp: Span, entries: &[Entry]) -> bool {

dups = true;
cx.span_err(sp, format!("duplicate key {}",
pprust::expr_to_str(&**key)).as_slice());
pprust::expr_to_string(&**key)).as_slice());
for span in spans.iter() {
cx.span_note(*span, "one occurrence here");
}
Expand Down

0 comments on commit e9644d4

Please sign in to comment.