about summary refs log tree commit diff
path: root/src/test/run-make-fulldeps/static-nobundle
AgeCommit message (Collapse)AuthorLines
2022-06-09Stabilize the `bundle` native library modifierVadim Petrochenkov-57/+0
2022-02-15adapt static-nobundle test to use llvm-nmKrasimir Georgiev-2/+4
No functional changes intended. This updates the test case to use llvm-nm instead of the system nm. This fixes an instance over at the experimental build of rustc with HEAD LLVM: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/8380#ef6f41b5-8595-49a6-be37-0eff80e0ccb5 It is related to https://github.com/rust-lang/rust/pull/94001. The issue is that this test uses the system nm, which may not be recent enough to understand the update to uwtable. This replaces the test to use the llvm-nm that should be recent enough (consistent with the LLVM sources we use to build rustc).
2022-01-09Stabilize -Z print-link-args as --print link-argsJosh Triplett-2/+2
We have stable options for adding linker arguments; we should have a stable option to help debug linker arguments.
2021-01-13Update tests for extern block lintingMark Rousskov-1/+1
2018-12-25Remove licensesMark Rousskov-40/+0
2018-03-22rustc: Add a `#[wasm_custom_section]` attributeAlex Crichton-0/+95
This commit is an implementation of adding custom sections to wasm artifacts in rustc. The intention here is to expose the ability of the wasm binary format to contain custom sections with arbitrary user-defined data. Currently neither our version of LLVM nor LLD supports this so the implementation is currently custom to rustc itself. The implementation here is to attach a `#[wasm_custom_section = "foo"]` attribute to any `const` which has a type like `[u8; N]`. Other types of constants aren't supported yet but may be added one day! This should hopefully be enough to get off the ground with *some* custom section support. The current semantics are that any constant tagged with `#[wasm_custom_section]` section will be *appended* to the corresponding section in the final output wasm artifact (and this affects dependencies linked in as well, not just the final crate). This means that whatever is interpreting the contents must be able to interpret binary-concatenated sections (or each constant needs to be in its own custom section). To test this change the existing `run-make` test suite was moved to a `run-make-fulldeps` folder and a new `run-make` test suite was added which applies to all targets by default. This test suite currently only has one test which only runs for the wasm target (using a node.js script to use `WebAssembly` in JS to parse the wasm output).