mirror of
https://git.proxmox.com/git/rustc
synced 2026-08-12 17:27:37 +00:00
Don't build docs in an arch-only build
This commit is contained in:
parent
25f1c2fefa
commit
1fd63ebe1f
2
debian/config.toml.in
vendored
2
debian/config.toml.in
vendored
@ -12,6 +12,8 @@ build = "DEB_BUILD_RUST_TYPE"
|
||||
host = ["DEB_HOST_RUST_TYPE"]
|
||||
target = ["DEB_TARGET_RUST_TYPE"]
|
||||
|
||||
docs = false
|
||||
|
||||
[install]
|
||||
prefix = "/usr"
|
||||
|
||||
|
||||
2
debian/rules
vendored
2
debian/rules
vendored
@ -148,6 +148,8 @@ override_dh_auto_build-arch: generate-sources
|
||||
# depends on build-arch anyways.
|
||||
override_dh_auto_build-indep: generate-sources
|
||||
ifneq (,$(BUILD_DOCS))
|
||||
# Rust has a weird way of configuring whether to build docs or not
|
||||
sed -i -e 's/^docs = false/docs = true/' debian/config.toml
|
||||
$(RUSTBUILD) doc $(RUSTBUILD_FLAGS)
|
||||
endif
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user