-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite long-linker-command-lines to rmake
- Loading branch information
Showing
4 changed files
with
21 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// This is a test which attempts to blow out the system limit with how many | ||
// arguments can be passed to a process. This'll successively call rustc with | ||
// larger and larger argument lists in an attempt to find one that's way too | ||
// big for the system at hand. This file itself is then used as a "linker" to | ||
// detect when the process creation succeeds. | ||
// | ||
// Eventually we should see an argument that looks like `@` as we switch from | ||
// passing literal arguments to passing everything in the file. | ||
// See https://github.com/rust-lang/rust/issues/41190 | ||
|
||
//@ ignore-cross-compile | ||
// Reason: the compiled binary is executed | ||
|
||
use run_make_support::{run, rustc}; | ||
|
||
fn main() { | ||
rustc().input("foo.rs").arg("-g").opt().run(); | ||
run("foo"); | ||
} |