Skip to content

Commit

Permalink
Merge pull request tock#4077 from tock/make-cargo-doc
Browse files Browse the repository at this point in the history
make: simplify cargo doc rule
  • Loading branch information
ppannuto authored Jul 9, 2024
2 parents 8da17b1 + f612c7f commit 80b0553
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions boards/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,7 @@ debug-lst: $(TARGET_PATH)/debug/$(PLATFORM).lst

.PHONY: doc
doc: | target
@# This mess is all to work around rustdoc giving no way to return an
@# error if there are warnings. This effectively simulates that.
$(Q)RUSTDOCFLAGS='$(RUSTDOC_FLAGS_TOCK)' $(CARGO) --color=always doc $(VERBOSE_FLAGS) --release --package $(PLATFORM) --target-dir=$(TARGET_DIRECTORY) 2>&1 | grep -C 9999 warning && (echo "Warnings detected during doc build" && if [[ $$NOWARNINGS == "true" ]]; then echo "Erroring due to CI context" && exit 33; fi) || if [ $$? -eq 33 ]; then exit 1; fi
$(Q)RUSTDOCFLAGS='$(RUSTDOC_FLAGS_TOCK)' $(CARGO) --color=always doc $(VERBOSE_FLAGS) --release --package $(PLATFORM)


.PHONY: lst
Expand Down

0 comments on commit 80b0553

Please sign in to comment.