update libstd paths in rules

This commit is contained in:
Ximin Luo 2020-09-05 16:11:09 +01:00
parent 4263493f5b
commit 830de2ed15
2 changed files with 6 additions and 6 deletions

View File

@ -81,7 +81,7 @@ in the libstd-rust-dev-wasm32 package.
wasm32-unknown-unknown is suitable for web stuff, where you typically will need
to depending on the rust-wasm-bindgen, js-sys, and web-sys crates. Here, calls
to libstd stuff (such as println!()) will silently do nothing, as defined in
``src/libstd/sys/wasm/fs.rs`` and explained in upstream #48564.
``library/std/src/sys/wasm/mod.rs`` and explained in upstream #48564.
wasm32-wasi is suitable for non-web stuff, and is closer to a "normal" target
where you expect libstd to be available, and for println!() to actually print

10
debian/rules vendored
View File

@ -233,7 +233,7 @@ ifeq (true,$(BUILD_WINDOWS))
$(RUSTBUILD) build $(RUSTBUILD_FLAGS) \
--host $(DEB_BUILD_RUST_TYPE) \
--target $(WINDOWS_ARCH)-pc-windows-gnu \
src/libstd
library/std
endif
override_dh_auto_build-indep: debian/dh_auto_build.stamp
@ -241,7 +241,7 @@ ifeq (true,$(BUILD_WASM))
$(RUSTBUILD) build $(RUSTBUILD_FLAGS) \
--host $(DEB_BUILD_RUST_TYPE) \
--target wasm32-unknown-unknown,wasm32-wasi \
src/libstd
library/std
endif
ifeq (true,$(BUILD_DOCS))
$(RUSTBUILD) doc $(RUSTBUILD_FLAGS)
@ -306,7 +306,7 @@ ifeq (true,$(BUILD_WASM))
-PATH=$(CURDIR)/debian/bin:$(PATH) $(RUSTBUILD_TEST) $(RUSTBUILD_FLAGS) $(RUSTBUILD_TEST_FLAGS) \
--host $(DEB_BUILD_RUST_TYPE) \
--target wasm32-unknown-unknown,wasm32-wasi \
src/libstd
library/std
endif
ifeq (true,$(BUILD_DOCS))
# Run all rules that test the docs, i.e. that depend on default:doc
@ -342,7 +342,7 @@ ifeq (true,$(BUILD_WINDOWS))
DESTDIR=$(DEB_DESTDIR) $(RUSTBUILD) install $(RUSTBUILD_FLAGS) \
--host $(DEB_BUILD_RUST_TYPE) \
--target $(WINDOWS_ARCH)-pc-windows-gnu \
src/libstd
library/std
endif
override_dh_auto_install-indep: debian/dh_auto_install.stamp
@ -350,7 +350,7 @@ ifeq (true,$(BUILD_WASM))
DESTDIR=$(DEB_DESTDIR) $(RUSTBUILD) install $(RUSTBUILD_FLAGS) \
--host $(DEB_BUILD_RUST_TYPE) \
--target wasm32-unknown-unknown,wasm32-wasi \
src/libstd
library/std
endif
ifeq (true,$(BUILD_DOCS))
# Brute force to remove privacy-breach-logo lintian warning.