forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#135790 - wesleywiser:update_windows_gnu_deb…
…uginfokind, r=lqd Update windows-gnu targets to set `DebuginfoKind::DWARF` These targets have always used DWARF debuginfo and not CodeView/PDB debuginfo like the MSVC Windows targets. However, their target definitions claim to use `DebuginfoKind::PDB` probably to ensure that we do not try to allow the use of split-DWARF debuginfo. This does not appear to be necessary since the targets set their supported split debug info to `Off`. I've looked at all of the uses of these properties and this patch does not appear to cause any functional changes in compiler behavior. I also added UI tests to attempt to validate there is no change in the behavior of these options on stable compilers. cc ````@mati865```` since you mentioned this in rust-lang#135739 cc ````@davidtwco```` for split-dwarf
- Loading branch information
Showing
19 changed files
with
145 additions
and
2 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 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,29 @@ | ||
//@ revisions: aarch64_gl i686_g i686_gl i686_uwp_g x86_64_g x86_64_gl x86_64_uwp_g | ||
//@ compile-flags: --crate-type cdylib -Csplit-debuginfo=off | ||
//@ check-pass | ||
|
||
//@[aarch64_gl] compile-flags: --target aarch64-pc-windows-gnullvm | ||
//@[aarch64_gl] needs-llvm-components: aarch64 | ||
|
||
//@[i686_g] compile-flags: --target i686-pc-windows-gnu | ||
//@[i686_g] needs-llvm-components: x86 | ||
|
||
//@[i686_gl] compile-flags: --target i686-pc-windows-gnullvm | ||
//@[i686_gl] needs-llvm-components: x86 | ||
|
||
//@[i686_uwp_g] compile-flags: --target i686-uwp-windows-gnu | ||
//@[i686_uwp_g] needs-llvm-components: x86 | ||
|
||
//@[x86_64_g] compile-flags: --target x86_64-pc-windows-gnu | ||
//@[x86_64_g] needs-llvm-components: x86 | ||
|
||
//@[x86_64_gl] compile-flags: --target x86_64-pc-windows-gnullvm | ||
//@[x86_64_gl] needs-llvm-components: x86 | ||
|
||
//@[x86_64_uwp_g] compile-flags: --target x86_64-uwp-windows-gnu | ||
//@[x86_64_uwp_g] needs-llvm-components: x86 | ||
|
||
#![feature(no_core)] | ||
|
||
#![no_core] | ||
#![no_std] |
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_packed.aarch64_gl.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=packed` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_packed.i686_g.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=packed` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_packed.i686_gl.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=packed` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_packed.i686_uwp_g.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=packed` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
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,29 @@ | ||
//@ revisions: aarch64_gl i686_g i686_gl i686_uwp_g x86_64_g x86_64_gl x86_64_uwp_g | ||
//@ compile-flags: --crate-type cdylib -Csplit-debuginfo=packed | ||
//@ error-pattern: error: `-Csplit-debuginfo=packed` is unstable on this platform | ||
|
||
//@[aarch64_gl] compile-flags: --target aarch64-pc-windows-gnullvm | ||
//@[aarch64_gl] needs-llvm-components: aarch64 | ||
|
||
//@[i686_g] compile-flags: --target i686-pc-windows-gnu | ||
//@[i686_g] needs-llvm-components: x86 | ||
|
||
//@[i686_gl] compile-flags: --target i686-pc-windows-gnullvm | ||
//@[i686_gl] needs-llvm-components: x86 | ||
|
||
//@[i686_uwp_g] compile-flags: --target i686-uwp-windows-gnu | ||
//@[i686_uwp_g] needs-llvm-components: x86 | ||
|
||
//@[x86_64_g] compile-flags: --target x86_64-pc-windows-gnu | ||
//@[x86_64_g] needs-llvm-components: x86 | ||
|
||
//@[x86_64_gl] compile-flags: --target x86_64-pc-windows-gnullvm | ||
//@[x86_64_gl] needs-llvm-components: x86 | ||
|
||
//@[x86_64_uwp_g] compile-flags: --target x86_64-uwp-windows-gnu | ||
//@[x86_64_uwp_g] needs-llvm-components: x86 | ||
|
||
#![feature(no_core)] | ||
|
||
#![no_core] | ||
#![no_std] |
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_packed.x86_64_g.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=packed` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_packed.x86_64_gl.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=packed` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_packed.x86_64_uwp_g.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=packed` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_unpacked.aarch64_gl.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=unpacked` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_unpacked.i686_g.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=unpacked` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_unpacked.i686_gl.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=unpacked` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_unpacked.i686_uwp_g.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=unpacked` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
29 changes: 29 additions & 0 deletions
29
tests/ui/debuginfo/windows_gnu_split_debuginfo_unpacked.rs
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,29 @@ | ||
//@ revisions: aarch64_gl i686_g i686_gl i686_uwp_g x86_64_g x86_64_gl x86_64_uwp_g | ||
//@ compile-flags: --crate-type cdylib -Csplit-debuginfo=unpacked | ||
//@ error-pattern: error: `-Csplit-debuginfo=unpacked` is unstable on this platform | ||
|
||
//@[aarch64_gl] compile-flags: --target aarch64-pc-windows-gnullvm | ||
//@[aarch64_gl] needs-llvm-components: aarch64 | ||
|
||
//@[i686_g] compile-flags: --target i686-pc-windows-gnu | ||
//@[i686_g] needs-llvm-components: x86 | ||
|
||
//@[i686_gl] compile-flags: --target i686-pc-windows-gnullvm | ||
//@[i686_gl] needs-llvm-components: x86 | ||
|
||
//@[i686_uwp_g] compile-flags: --target i686-uwp-windows-gnu | ||
//@[i686_uwp_g] needs-llvm-components: x86 | ||
|
||
//@[x86_64_g] compile-flags: --target x86_64-pc-windows-gnu | ||
//@[x86_64_g] needs-llvm-components: x86 | ||
|
||
//@[x86_64_gl] compile-flags: --target x86_64-pc-windows-gnullvm | ||
//@[x86_64_gl] needs-llvm-components: x86 | ||
|
||
//@[x86_64_uwp_g] compile-flags: --target x86_64-uwp-windows-gnu | ||
//@[x86_64_uwp_g] needs-llvm-components: x86 | ||
|
||
#![feature(no_core)] | ||
|
||
#![no_core] | ||
#![no_std] |
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_unpacked.x86_64_g.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=unpacked` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_unpacked.x86_64_gl.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=unpacked` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 4 additions & 0 deletions
4
tests/ui/debuginfo/windows_gnu_split_debuginfo_unpacked.x86_64_uwp_g.stderr
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,4 @@ | ||
error: `-Csplit-debuginfo=unpacked` is unstable on this platform | ||
|
||
error: aborting due to 1 previous error | ||
|