diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-04-20 01:18:08 +0000 |
|---|---|---|
| committer | Trevor Gross <t.gross35@gmail.com> | 2025-04-19 22:30:58 -0400 |
| commit | a48de6950ce784299dd06fc71c015ed48c09a95f (patch) | |
| tree | e68ecc199248d6865ba1ca20ca4bca6a325ac617 /library/compiler-builtins/ci/run.sh | |
| parent | c35cccd6764838330fb12320a33740e15ec8bb35 (diff) | |
| download | rust-a48de6950ce784299dd06fc71c015ed48c09a95f.tar.gz rust-a48de6950ce784299dd06fc71c015ed48c09a95f.zip | |
Move builtins-test-intrinsics out of the workspace
This crate doesn't need to be a default member since it requires the opposite settings from everything else. Exclude it from the workspace and run it only when explicitly requested. This also makes `cargo t --no-default-features` work without additional qualifiers. `--no-default-features` still needs to be passed to ensure `#![compiler_builtins]` does not get set. compiler-builtins needs doctests disabled in order for everything to work correctly, since this causes an error running rustdoc that is unrelated to features (our `compiler_builtins` is getting into the crate graph before that from the sysroot, but `#![compiler_builtins]` is not set). We can also remove `test = false` and `doctest = false` in `builtins-test` since these no longer cause issues. This is unlikely to be used but it is better to not quietly skip if anything ever gets added by accident.
Diffstat (limited to 'library/compiler-builtins/ci/run.sh')
| -rwxr-xr-x | library/compiler-builtins/ci/run.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/compiler-builtins/ci/run.sh b/library/compiler-builtins/ci/run.sh index 49cc1628652..96a6e92a9b9 100755 --- a/library/compiler-builtins/ci/run.sh +++ b/library/compiler-builtins/ci/run.sh @@ -122,7 +122,9 @@ done rm -f "${rlib_paths[@]}" build_intrinsics_test() { - cargo build --target "$target" -v --package builtins-test-intrinsics "$@" + cargo build \ + --target "$target" --verbose \ + --manifest-path builtins-test-intrinsics/Cargo.toml "$@" } # Verify that we haven't dropped any intrinsics/symbols @@ -133,10 +135,8 @@ build_intrinsics_test --features c --release # Verify that there are no undefined symbols to `panic` within our # implementations -CARGO_PROFILE_DEV_LTO=true \ - cargo build --target "$target" --package builtins-test-intrinsics -CARGO_PROFILE_RELEASE_LTO=true \ - cargo build --target "$target" --package builtins-test-intrinsics --release +CARGO_PROFILE_DEV_LTO=true build_intrinsics_test +CARGO_PROFILE_RELEASE_LTO=true build_intrinsics_test --release # Ensure no references to any symbols from core update_rlib_paths |
