diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2014-03-10 20:13:19 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2014-03-11 18:15:35 +0100 |
| commit | 3ea50f0e36ea518e94dd4d3ec0e0be69e05e1358 (patch) | |
| tree | 7d46efccab3c97fc0c1ad598f937b126662e348e /src/test/debug-info | |
| parent | a0f20f09fde77fb7330b1a67918744149dca3318 (diff) | |
debuginfo: Improve commandline option handling for debuginfo (fixes #12811)
The `-g` flag does not take an argument anymore while the argument to `--debuginfo` becomes mandatory. This change makes it possible again to run the compiler like this: `rustc -g ./file.rs` This did not work before because `./file.rs` was misinterpreted as the argument to `-g`. In order to get limited debuginfo, one now has to use `--debuginfo=1`.
Diffstat (limited to 'src/test/debug-info')
| -rw-r--r-- | src/test/debug-info/issue7712.rs | 2 | ||||
| -rw-r--r-- | src/test/debug-info/lexical-scope-in-parameterless-closure.rs | 2 | ||||
| -rw-r--r-- | src/test/debug-info/limited-debuginfo.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/debug-info/issue7712.rs b/src/test/debug-info/issue7712.rs index af9b84085e3..8308afce08e 100644 --- a/src/test/debug-info/issue7712.rs +++ b/src/test/debug-info/issue7712.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// compile-flags:-g1 +// compile-flags:--debuginfo=1 pub trait TraitWithDefaultMethod { fn method(self) { diff --git a/src/test/debug-info/lexical-scope-in-parameterless-closure.rs b/src/test/debug-info/lexical-scope-in-parameterless-closure.rs index ec2c80034d2..fd0a156b454 100644 --- a/src/test/debug-info/lexical-scope-in-parameterless-closure.rs +++ b/src/test/debug-info/lexical-scope-in-parameterless-closure.rs @@ -10,7 +10,7 @@ // ignore-android: FIXME(#10381) -// compile-flags:-g1 +// compile-flags:--debuginfo=1 // debugger:run // Nothing to do here really, just make sure it compiles. See issue #8513. diff --git a/src/test/debug-info/limited-debuginfo.rs b/src/test/debug-info/limited-debuginfo.rs index ccf1506a565..f1e413e5e92 100644 --- a/src/test/debug-info/limited-debuginfo.rs +++ b/src/test/debug-info/limited-debuginfo.rs @@ -10,7 +10,7 @@ // ignore-android: FIXME(#10381) -// compile-flags:-g1 +// compile-flags:--debuginfo=1 // Make sure functions have proper names // debugger:info functions |
