about summary refs log tree commit diff
path: root/tests/run-make
AgeCommit message (Collapse)AuthorLines
2024-06-29Migrate `run-make/return-non-c-like-enum` to `rmake.rs`Guillaume Gomez-8/+18
2024-06-29Migrate `run-make/override-aliased-flags` to `rmake.rs`Guillaume Gomez-23/+24
2024-06-29Add a run-make test that LLD is not being used by default on the x64 ↵Jakub Beránek-2/+32
beta/stable channel
2024-06-29Auto merge of #126698 - Oneirical:tessteract, r=Kobzolbors-57/+113
Migrate `unknown-mod-stdin`, `issue-68794-textrel-on-minimal-lib`, `raw-dylib-cross-compilation` and `used-cdylib-macos` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Seriously needs OSX/Windows try-jobs. If it fails, restore `only-linux` in `textrel-on-minimal-lib` and try again. try-job: x86_64-mingw try-job: x86_64-msvc
2024-06-28rewrite cdylib-fewer-symbols to rmakeOneirical-15/+23
2024-06-28rewrite metadata-dep-info to rmakeOneirical-7/+20
2024-06-28rewrite silly-file-names to rmakeOneirical-12/+24
2024-06-28rewrite extern-flag-pathless to rmakeOneirical-34/+40
2024-06-28rmeta_contains functions for remap-path-prefixOneirical-11/+40
2024-06-28rewrite used-cdylib-macos to rmakeOneirical-15/+21
2024-06-28rewrite raw-dylib-cross-compilation to rmakeOneirical-20/+41
2024-06-28rewrite and slightly rename issue-68794-textrel-on-minimal-libOneirical-18/+30
2024-06-28rewrite unknown-mod-stdin to rmakeOneirical-8/+25
2024-06-28Auto merge of #126701 - onur-ozkan:build-lld-if-enabled, r=Kobzolbors-1/+3
ignore `llvm::Lld` if lld is not enabled People are having trouble ([ref. zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/MSVC.20Runtime.20mismatch.20when.20building.20LLD)) when they don't want to build `lld` for their custom distribution tarballs even with `lld = false` in their config.toml. This is because it is not controlled by `lld_enabled` flag. This change ensures that `llvm:Lld` is controlled by lld configuration. Additionally, `lld = true` is set by default for dist profile, because we have been building it all along and this maintains that behavior. try-job: x86_64-mingw
2024-06-28Auto merge of #127000 - Oneirical:no-test-for-the-wicked, r=Kobzolbors-72/+79
Migrate `use-suggestions-rust-2018`, `overwrite-input`, `lto-dylib-dep` and `many-crates-but-no-match` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
2024-06-28update `run-make/windows-safeseh` compiletest headeronur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-06-28rewrite emit-stack-sizes to rmakeOneirical-12/+24
2024-06-28rewrite debug-assertions to rmakeOneirical-33/+40
2024-06-28rewrite remap-path-prefix to rmakeOneirical-30/+58
2024-06-28ignore beta/stable channels on `rust-lld-by-default` testonur-ozkan-0/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-06-27rewrite many-crates-but-no-match to rmakeOneirical-35/+31
2024-06-27Add `ar` command in `run-make-support`Guillaume Gomez-2/+2
2024-06-27Migrate `run-make/invalid-library` to `rmake.rs`Guillaume Gomez-6/+8
2024-06-26rewrite lto-dylib-dep to rmakeOneirical-11/+15
2024-06-26rewrite overwrite-input to rmakeOneirical-19/+15
2024-06-26rewrite use-suggestions-rust-2018 to rmakeOneirical-7/+18
2024-06-26rewrite libtest-padding to rmakeOneirical-14/+46
2024-06-26rewrite pretty-print-to-file to rmakeOneirical-5/+12
2024-06-26rewrite pretty-print-with-dep-file to rmakeOneirical-9/+17
2024-06-26Rollup merge of #126964 - Oneirical:total-catestrophe, r=KobzolMatthias Krüger-29/+50
Migrate `lto-empty`, `invalid-so` and `issue-20626` `run-make` tests to rmake.rs Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
2024-06-25rewrite and rename issue-20626 to rmakeOneirical-9/+16
2024-06-25rewrite invalid-so to rmakeOneirical-7/+17
2024-06-25rewrite lto-empty to rmakeOneirical-13/+17
2024-06-25rewrite mingw-export-call-convention to rmakeOneirical-15/+21
2024-06-25Rollup merge of #126943 - Urgau:dedup-all, r=petrochenkovMatthias Krüger-0/+6
De-duplicate all consecutive native libs regardless of their options Address https://github.com/rust-lang/rust/pull/126913#issuecomment-2188184011 by no longer de-duplicating based on the "options" but by only looking at the generated link args, as to avoid consecutive libs that originated from different native-lib with different options (like `raw-dylib` on Windows) but isn't relevant for `--print=native-static-libs`. r? ``@petrochenkov``
2024-06-25De-duplicate all consecutive native libs regardless of their optionsUrgau-0/+6
2024-06-25Auto merge of #126834 - bjorn3:interface_refactor, r=michaelwoeristerbors-5/+7
Various refactorings to rustc_interface This should make it easier to move the driver interface away from queries in the future. Many custom drivers call queries like `queries.global_ctxt()` before they are supposed to be called, breaking some things like certain `--print` and `-Zunpretty` options, `-Zparse-only` and emitting the dep info at the wrong point in time. They are also not actually necessary at all. Passing around the query output manually would avoid recomputation too and would be just as easy. Removing driver queries would also reduce the amount of global mutable state of the compiler. I'm not removing driver queries in this PR to avoid breaking the aforementioned custom drivers.
2024-06-23Rollup merge of #126862 - ChrisDenton:needs-symlink, r=jieyouxuMatthias Krüger-0/+3
Add needs-symlink directive to compiletest This is an alternative to #126846 that allows running symlink tests on Windows in CI but will ignore them locally if symlinks aren't available. A future improvement would be to check that the `needs-symlink` directive is used in rmake files that call `create_symlink` but this is just a quick PR to unblock Windows users who want to run tests locally without enabling symlinks.
2024-06-23Add need-symlink directive to compiletestChris Denton-0/+3
2024-06-23Rollup merge of #126720 - Rejyr:migrate-branch-protection-rmake, r=jieyouxuMatthias Krüger-0/+37
Ignore `branch-protection-check-IBT` run-make test The old Makefile implementation (#110304) had an improper comparison which caused the test to never run. However, both the updated Makefile implementation and the rmake implementation fail (missing `.note.gnu.property`). This could be a bug in the original implementation or test flakiness. Edit: Manually recreating the test case shows that `.note.gnu.property` does not appear in nightly. ```rust // main.rs fn main() { println!("hello world"); } ``` ```sh $ rustc +nightly -V rustc 1.81.0-nightly (c1b336cb6 2024-06-21) $ rustc +stable -V rustc 1.79.0 (129f3b996 2024-06-10) ``` ```sh $ rustc +nightly -Zcf-protection=branch -Clink-args=-nostartfiles -Csave-temps "-L$PWD" main.rs -o main $ llvm-readobj --elf-output-style=GNU -nW main Displaying notes found in: .note.gnu.build-id Owner Data size Description GNU 0x00000008 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: bcae34e6431b2a37 ``` Compiling without the other flags still does not show `.note.gnu.property`. ```sh $ rustc +nightly main.rs -o main $ llvm-readobj --elf-output-style=GNU -nW main Displaying notes found in: .note.ABI-tag Owner Data size Description GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag) OS: Linux, ABI: 4.4.0 Displaying notes found in: .note.gnu.build-id Owner Data size Description GNU 0x00000008 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: d60d5f108b63bf3a ``` Compiling on stable shows `.note.gnu.property`. ```sh $ rustc +stable main.rs -o main $ llvm-readobj --elf-output-style=GNU -nW main Displaying notes found in: .note.gnu.property Owner Data size Description GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0 (property note) Properties: x86 ISA needed: x86-64-baseline Displaying notes found in: .note.gnu.build-id Owner Data size Description GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: 4a494eb578123314e6ff1caf1c8877e27004664f Displaying notes found in: .note.ABI-tag Owner Data size Description GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag) OS: Linux, ABI: 4.4.0 ``` Part of #121876. r? `@jieyouxu`
2024-06-22(wip) Migrate `branch-protection-check-IBT` to `rmake`Jerry Wang-0/+37
2024-06-22Enable cross compilation on `run-make/relro-levels`Jerry Wang-1/+0
2024-06-22Migrate `static-pie` scripts to `rmake`Jerry Wang-42/+29
2024-06-22Migrate `static-pie` to `rmake`Jerry Wang-18/+46
2024-06-22Migrate `relro-levels` to `rmake`Jerry Wang-22/+29
2024-06-22Avoid a couple of unnecessary EarlyDiagCtxt usesbjorn3-5/+7
2024-06-22Rollup merge of #126823 - ↵Guillaume Gomez-8/+18
GuillaumeGomez:migrate-run-make-inline-always-many-cgu, r=Kobzol Migrate `run-make/inline-always-many-cgu` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu`
2024-06-22Migrate `run-make/inline-always-many-cgu` to `rmake.rs`Guillaume Gomez-8/+18
2024-06-21Rollup merge of #126712 - Oneirical:bootest-constestllation, r=jieyouxuJubilee-40/+59
Migrate `relocation-model`, `error-writing-dependencies` and `crate-name-priority` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Needs MSVC try-job due to #28026, almost guaranteed to fail, but let's see anyways. try-job: aarch64-gnu `/* try-job: x86_64-msvc */` try-job: x86_64-apple-1 try-job: armhf-gnu try-job: test-various
2024-06-21rewrite mismatching-target-triples to rmakeOneirical-12/+16