mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-02 07:05:56 +00:00
update libstd paths in rules
This commit is contained in:
parent
4263493f5b
commit
830de2ed15
2
debian/README.Debian
vendored
2
debian/README.Debian
vendored
@ -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
10
debian/rules
vendored
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user