Home
last modified time | relevance | path

Searched +full:wasm32 +full:- +full:unknown +full:- +full:emscripten (Results 1 – 25 of 54) sorted by relevance

123

/third_party/rust/rust/src/tools/compiletest/src/header/
Dtests.rs13 ) -> test::TestDesc { in make_test_description()
26 let mut s = "normalize-stderr-32bit: \"something (32 bits)\" -> \"something ($WORD bits)\"."; in test_parse_normalization_string()
29 assert_eq!(s, " -> \"something ($WORD bits)\"."); in test_parse_normalization_string()
32 let mut s = "normalize-stderr-32bit: something (32 bits) -> something ($WORD bits)."; in test_parse_normalization_string()
35 assert_eq!(s, r#"normalize-stderr-32bit: something (32 bits) -> something ($WORD bits)."#); in test_parse_normalization_string()
38 let mut s = "normalize-stderr-32bit: \"something (32 bits) -> something ($WORD bits)."; in test_parse_normalization_string()
41 assert_eq!(s, "normalize-stderr-32bit: \"something (32 bits) -> something ($WORD bits)."); in test_parse_normalization_string()
44 let mut s = "normalize-stderr-32bit: \"something (32 bits)\" -> \"something ($WORD bits)."; in test_parse_normalization_string()
47 assert_eq!(s, " -> \"something ($WORD bits)."); in test_parse_normalization_string()
49 // Nothing to normalize (No quotes, 16-bit) in test_parse_normalization_string()
[all …]
Dcfg.rs7 pub(super) fn handle_ignore(config: &Config, line: &str) -> IgnoreDecision { in handle_ignore()
23 pub(super) fn handle_only(config: &Config, line: &str) -> IgnoreDecision { in handle_only()
41 /// Parses a name-value directive which contains config-specific information, e.g., `ignore-x86`
42 /// or `normalize-stderr-32bit`.
47 ) -> ParsedNameDirective<'a> { in parse_cfg_name_directive()
51 if line.as_bytes().get(prefix.len()) != Some(&b'-') { in parse_cfg_name_directive()
110 // If something is ignored for emscripten, it likely also needs to be in parse_cfg_name_directive()
111 // ignored for wasm32-unknown-unknown. in parse_cfg_name_directive()
112 (config.target == "wasm32-unknown-unknown").then_some("emscripten"), in parse_cfg_name_directive()
148 // `wasm32-bare` is an alias to refer to just wasm32-unknown-unknown in parse_cfg_name_directive()
[all …]
/third_party/python/Tools/wasm/
DREADME.md3 **WARNING: WASM support is work-in-progress! Lots of features are not working yet.**
6 compilation of CPython to WebAssembly (WASM). Python supports Emscripten
7 (*wasm32-emscripten*) and WASI (*wasm32-wasi*) targets. Emscripten builds
15 ## wasm32-emscripten build
17 For now the build system has two target flavors. The ``Emscripten/browser``
18 target (``--with-emscripten-target=browser``) is optimized for browsers.
20 support. The ``Emscripten/node`` target has threading enabled and can
23 Cross compiling to the wasm32-emscripten platform needs the
24 [Emscripten](https://emscripten.org/) SDK and a build Python interpreter.
25 Emscripten 3.1.19 or newer are recommended. All commands below are relative
[all …]
Dconfig.site-wasm32-emscripten1 # config.site override for cross compiling to wasm32-emscripten platform
3 # CONFIG_SITE=Tools/wasm/config.site-wasm32-emscripten \
4 # emconfigure ./configure --host=wasm32-unknown-emscripten --build=...
13 # Emscripten has no /dev/pt*
17 # dummy readelf, Emscripten build does not need readelf.
27 # unsupported syscall, https://github.com/emscripten-core/emscripten/issues/13393
57 # Syscalls not implemented in emscripten
77 # sockets are supported, but only AF_INET / AF_INET6 in non-blocking mode.
98 # Emscripten does not support hard links, always fails with errno 34
103 # Emscripten's faccessat does not accept AT_* flags.
Dwasm_build.py4 $ ./Tools/wasm/wasm_builder.py emscripten-browser build repl
5 $ ./Tools/wasm/wasm_builder.py emscripten-node-dl build test
8 Primary build targets are "emscripten-node-dl" (NodeJS, dynamic linking),
9 "emscripten-browser", and "wasi".
11 Emscripten builds require a recent Emscripten SDK. The tools looks for an
16 and falls back to /opt/wasi-sdk.
21 ./Tools/wasm/wasm_builder.py --clean build build
55 # path to WASI-SDK root
56 WASI_SDK_PATH = pathlib.Path(os.environ.get("WASI_SDK_PATH", "/opt/wasi-sdk"))
58 # path to Emscripten SDK config file.
[all …]
/third_party/rust/rust/src/ci/docker/host-x86_64/disabled/asmjs/
DDockerfile3 RUN apt-get update && apt-get install -y --no-install-recommends \
6 ninja-build \
9 ca-certificates \
15 xz-utils \
18 COPY scripts/emscripten.sh /scripts/
19 RUN bash /scripts/emscripten.sh
24 ENV PATH=$PATH:/emsdk-portable
25 ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
26 ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
27 ENV BINARYEN_ROOT=/emsdk-portable/upstream/
[all …]
/third_party/rust/rust/compiler/rustc_target/src/spec/
Dwasm32_unknown_emscripten.rs4 pub fn target() -> Target { in target()
5 // Reset flags for non-Em flavors back to empty to satisfy sanity checking tests. in target()
9 &["-sABORTING_MALLOC=0", "-Wl,--fatal-warnings"], in target()
13 os: "emscripten".into(), in target()
15 // emcc emits two files - a .js file to instantiate the wasm and supply platform in target()
28 llvm_target: "wasm32-unknown-emscripten".into(), in target()
30 data_layout: "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20".into(), in target()
31 arch: "wasm32".into(), in target()
/third_party/rust/crates/libc/ci/docker/wasm32-unknown-emscripten/
DDockerfile7 RUN apt-get update
8 RUN apt-get install -y --no-install-recommends tzdata
9 RUN apt-get install -y --no-install-recommends \
10 ca-certificates \
17 libc6-dev \
20 python3-distutils \
24 xz-utils \
27 RUN ln -s /usr/bin/python3 /usr/bin/python & \
28 ln -s /usr/bin/pip3 /usr/bin/pip
29 COPY emscripten.sh /
[all …]
/third_party/rust/rust/src/ci/docker/host-x86_64/wasm32/
DDockerfile3 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
6 ninja-build \
9 ca-certificates \
15 xz-utils \
17 && rm -rf /var/lib/apt/lists/*
19 COPY scripts/emscripten.sh /scripts/
20 RUN bash /scripts/emscripten.sh
28 ENV PATH=$PATH:/emsdk-portable
29 ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
38 RUN ln -s /emsdk-portable/node/$(ls /emsdk-portable/node | sort -V | tail -n 1) \
[all …]
/third_party/rust/rust/compiler/rustc_target/src/spec/tests/
Dtests_impl.rs4 // Test target self-consistency and JSON encoding/decoding roundtrip.
17 assert_eq!(self.is_like_wasm, self.arch == "wasm32" || self.arch == "wasm64"); in check_consistency()
26 self.is_like_wasm && self.os != "emscripten", in check_consistency()
29 assert_eq!(self.os == "emscripten", matches!(self.linker_flavor, LinkerFlavor::EmCc)); in check_consistency()
64 // Check that link args for cc and non-cc versions of flavors are consistent. in check_consistency()
68 if let Some(suffix) = arg.strip_prefix("-Wl,") { in check_consistency()
83 // Check that link args for lld and non-lld versions of flavors are consistent. in check_consistency()
109 // Keep the default "unknown" vendor instead. in check_consistency()
114 assert_ne!(self.os, "unknown"); in check_consistency()
129 if self.dynamic_linking && !(self.is_like_wasm && self.os != "emscripten") { in check_consistency()
[all …]
/third_party/rust/crates/libc/
DCargo.toml5 license = "MIT OR Apache-2.0"
7 repository = "https://github.com/rust-lang/libc"
8 homepage = "https://github.com/rust-lang/libc"
11 categories = ["external-ffi-bindings", "no-std", "os"]
19 features = ["const-extern-fn", "extra_traits"]
20 default-target = "x86_64-unknown-linux-gnu"
22 "aarch64-apple-darwin",
23 "aarch64-apple-ios",
24 "aarch64-linux-android",
25 "aarch64-pc-windows-msvc",
[all …]
/third_party/rust/crates/libc/libc-test/semver/
DTODO-unix.txt1 # These symbols are no-op or missing on these targets:
2 # * wasm32-unknown-emscripten
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Dwasm-constructor-returns.hpp1 // bindgen-flags: --generate constructors,types -- -fvisibility=default --target=wasm32-unknown-ems…
/third_party/rust/crates/serde/serde/
Dbuild.rs5 // The rustc-cfg strings below are *not* public API. Please let us know by
9 println!("cargo:rerun-if-changed=build.rs"); in main()
17 let emscripten = target == "asmjs-unknown-emscripten" || target == "wasm32-unknown-emscripten"; in main() localVariable
19 // TryFrom, Atomic types, non-zero signed integers, and SystemTime::checked_add in main()
21 // https://blog.rust-lang.org/2019/04/11/Rust-1.34.0.html#tryfrom-and-tryinto in main()
22 // https://blog.rust-lang.org/2019/04/11/Rust-1.34.0.html#library-stabilizations in main()
24 println!("cargo:rustc-cfg=no_core_try_from"); in main()
25 println!("cargo:rustc-cfg=no_num_nonzero_signed"); in main()
26 println!("cargo:rustc-cfg=no_systemtime_checked_add"); in main()
27 println!("cargo:rustc-cfg=no_relaxed_trait_bounds"); in main()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyISelDAGToDAG.cpp1 //- WebAssemblyISelDAGToDAG.cpp - A dag to dag inst selector for WebAssembly -//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
27 #define DEBUG_TYPE "wasm-isel"
29 //===--------------------------------------------------------------------===//
30 /// WebAssembly-specific code to select WebAssembly machine instructions for
57 if (Subtarget->hasAddr64()) in runOnMachineFunction()
59 "64-bit WebAssembly (wasm64) is not currently supported"); in runOnMachineFunction()
79 if (Node->isMachineOpcode()) { in Select()
[all …]
DREADME.txt1 //===-- README.txt - Notes for WebAssembly code gen -----------------------===//
7 using it through "clang -c", so this backend is not yet considered widely
11 Emscripten provides a C/C++ compilation environment that includes standard
14 Emscripten documentation in general, and this page in particular:
16 * https://github.com/kripken/emscripten/wiki/New-WebAssembly-Backend
20 - wasm32-unknown-unknown, which provides a relatively minimal environment
22 - wasm32-unknown-emscripten, which uses Emscripten internally and
34 Work-in-progress documentation for the ".o" file format is here:
36 * https://github.com/WebAssembly/tool-conventions/blob/master/Linking.md
51 https://wasm-stat.us
[all …]
/third_party/rust/crates/libc/ci/
Dbuild.sh8 set -ex
18 rustup component add rust-src
32 until [ $n -ge $N ]
34 if rustup target add "${TARGET}" --toolchain "${RUST}" ; then
44 cargo "+${RUST}" "${BUILD_CMD}" -vv --no-default-features --target "${TARGET}"
46 # FIXME: With `build-std` feature, `compiler_builtins` emits a lof of lint warnings.
47 RUSTFLAGS="-A improper_ctypes_definitions" cargo "+${RUST}" "${BUILD_CMD}" \
48 -Z build-std=core,alloc -vv --no-default-features --target "${TARGET}"
53 cargo "+${RUST}" "${BUILD_CMD}" -vv --target "${TARGET}"
55 RUSTFLAGS="-A improper_ctypes_definitions" cargo "+${RUST}" "${BUILD_CMD}" \
[all …]
/third_party/rust/rust/tests/assembly/stack-protector/
Dstack-protector-target-support.rs2 // targets, with the exception of nvptx64-nvidia-cuda
8 // assembly-output: emit-asm
9 // [r1] compile-flags: --target aarch64-unknown-linux-gnu
10 // [r1] needs-llvm-components: aarch64
11 // [r2] compile-flags: --target i686-pc-windows-gnu
12 // [r2] needs-llvm-components: x86
13 // [r3] compile-flags: --target i686-pc-windows-msvc
14 // [r3] needs-llvm-components: x86
15 // [r4] compile-flags: --target i686-unknown-linux-gnu
16 // [r4] needs-llvm-components: x86
[all …]
/third_party/skia/m133/bazel/external/zlib_skia/
DBUILD.bazel4 # We define this here because the emscripten toolchain calls the cpu wasm, whereas the
5 # bazelbuild/platforms call it wasm32. https://github.com/emscripten-core/emsdk/issues/919
153 "-Wno-unused-function",
154 "-Wno-deprecated-non-prototype",
155 # no-deprecated-non-prototype was added in Clang 14+, used in emscripten for CanvasKit, but
157 "-Wno-unknown-warning-option",
160 "-mssse3",
161 "-msse4.2",
162 "-mpclmul",
165 "-mpclmul",
[all …]
/third_party/rust/rust/src/doc/rustc/src/
Dplatform-support.md5 white-space: nowrap;
11 for targets at each tier, see the [Target Tier Policy](target-tier-policy.md).
16 Component availability is tracked [here](https://rust-lang.github.io/rustup-components-history/).
28 see [Tier 1 with Host Tools](target-tier-policy.md#tier-1-with-host-tools) in
34 -------|-------
35 `aarch64-unknown-linux-gnu` | ARM64 Linux (kernel 4.1, glibc 2.17+) [^missing-stack-probes]
36 `i686-pc-windows-gnu` | 32-bit MinGW (Windows 7+) [^windows-support]
37 `i686-pc-windows-msvc` | 32-bit MSVC (Windows 7+) [^windows-support]
38 `i686-unknown-linux-gnu` | 32-bit Linux (kernel 3.2+, glibc 2.17+)
39 `x86_64-apple-darwin` | 64-bit macOS (10.7+, Lion+)
[all …]
/third_party/rust/crates/libc/.github/workflows/
Dbors.yml6 - auto-libc
7 - try
13 … actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
17 runs-on: ubuntu-22.04
19 fail-fast: true
22 i686-unknown-linux-gnu,
23 x86_64-unknown-linux-gnu,
26 - uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
29 - uses: actions/checkout@v3
30 - name: Setup Rust toolchain
[all …]
/third_party/rust/rust/library/std/src/sys/unix/
Dthread_local_dtor.rs4 //! Provides thread-local destructors without an associated "key", which
30 ) -> libc::c_int; in register_dtor()
86 #[cfg(any(target_os = "vxworks", target_os = "horizon", target_os = "emscripten"))]
87 …allow(unused))] // might remain unused depending on target details (e.g. wasm32-unknown-emscripten)
/third_party/rust/rust/src/ci/docker/host-x86_64/dist-various-1/
DDockerfile3 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
10 libtool-bin \
14 xz-utils \
15 libncurses-dev \
18 ninja-build \
21 ca-certificates \
26 xz-utils \
27 zlib1g-dev \
28 g++-arm-linux-gnueabi \
29 g++-arm-linux-gnueabihf \
[all …]
/third_party/rust/rust/src/
Dstage0.json3 "dist_server": "https://static.rust-lang.org",
4 "artifacts_server": "https://ci-artifacts.rust-lang.org/rustc-builds",
5 "artifacts_with_llvm_assertions_server": "https://ci-artifacts.rust-lang.org/rustc-builds-alt",
6 "git_merge_commit_email": "bors@rust-lang.org",
13 "The section below is generated by `./x.py run src/tools/bump-stage0`,",
20 "date": "2023-07-13",
25 …"dist/2023-07-13/cargo-1.71.0-aarch64-apple-darwin.tar.gz": "e6c678fa6caaea333b3d05e3dc41842d8a37c…
26 …"dist/2023-07-13/cargo-1.71.0-aarch64-apple-darwin.tar.xz": "7637bc54d15cec656d7abb32417316546c7a7…
27 …"dist/2023-07-13/cargo-1.71.0-aarch64-pc-windows-msvc.tar.gz": "989cddc598aa72ef7574a0eb82c2119909…
28 …"dist/2023-07-13/cargo-1.71.0-aarch64-pc-windows-msvc.tar.xz": "f6df21c5f76c928d1c8fc721ea320846e6…
[all …]
/third_party/rust/rust/src/tools/build-manifest/src/
Dmain.rs16 "aarch64-apple-darwin",
17 "aarch64-pc-windows-msvc",
18 "aarch64-unknown-linux-gnu",
19 "aarch64-unknown-linux-musl",
20 "arm-unknown-linux-gnueabi",
21 "arm-unknown-linux-gnueabihf",
22 "armv7-unknown-linux-gnueabihf",
23 "i686-apple-darwin",
24 "i686-pc-windows-gnu",
25 "i686-pc-windows-msvc",
[all …]

123