Skip to content

Commit 9d5da0f

Browse files
committed
attempt with x86_64-unknown-linux-gnuasan
1 parent f21dbfc commit 9d5da0f

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

compiler/rustc_target/src/spec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ supported_targets! {
18011801

18021802
("x86_64-pc-cygwin", x86_64_pc_cygwin),
18031803

1804-
("x86_64-asan-linux-gnu", x86_64_asan_linux_gnu),
1804+
("x86_64-unknown-linux-gnuasan", x86_64_unknown_linux_gnuasan),
18051805
}
18061806

18071807
/// Cow-Vec-Str: Cow<'static, [Cow<'static, str>]>

compiler/rustc_target/src/spec/targets/x86_64_asan_linux_gnu.rs renamed to compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnuasan.rs

File renamed without changes.

src/bootstrap/src/core/build_steps/llvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ fn supported_sanitizers(
12921292
"x86_64",
12931293
&["asan", "dfsan", "lsan", "msan", "safestack", "tsan", "rtsan"],
12941294
),
1295-
"x86_64-asan-linux-gnu" => common_libs("linux", "x86_64", &["asan"]),
1295+
"x86_64-unknown-linux-gnuasan" => common_libs("linux", "x86_64", &["asan"]),
12961296
"x86_64-unknown-linux-musl" => {
12971297
common_libs("linux", "x86_64", &["asan", "lsan", "msan", "tsan"])
12981298
}

src/bootstrap/src/core/sanity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const STAGE0_MISSING_TARGETS: &[&str] = &[
4242
// just a dummy comment so the list doesn't get onelined
4343
"riscv64gc-unknown-redox",
4444
"hexagon-unknown-qurt",
45-
"x86_64-asan-linux-gnu",
45+
"x86_64-unknown-linux-gnuasan",
4646
];
4747

4848
/// Minimum version threshold for libstdc++ required when using prebuilt LLVM

src/doc/rustc/src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,6 @@
150150
- [x86_64-pc-cygwin](platform-support/x86_64-pc-cygwin.md)
151151
- [x86_64-unknown-linux-none](platform-support/x86_64-unknown-linux-none.md)
152152
- [x86_64-unknown-none](platform-support/x86_64-unknown-none.md)
153-
- [x86_64-asan-linux-gnu](platform-support/x86_64-asan-linux-gnu.md)
153+
- [x86_64-unknown-linux-gnuasan](platform-support/x86_64-unknown-linux-gnuasan.md)
154154
- [xtensa-\*-none-elf](platform-support/xtensa.md)
155155
- [\*-nuttx-\*](platform-support/nuttx.md)

src/doc/rustc/src/platform-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ target | std | host | notes
448448
[`x86_64-win7-windows-msvc`](platform-support/win7-windows-msvc.md) | ✓ | ✓ | 64-bit Windows 7 support
449449
[`x86_64-wrs-vxworks`](platform-support/vxworks.md) | ✓ | |
450450
[`x86_64h-apple-darwin`](platform-support/x86_64h-apple-darwin.md) | ✓ | ✓ | macOS with late-gen Intel (at least Haswell)
451-
[`x86_64-asan-linux-gnu`](platform-support/x86_64-asan-linux-gnu.md) | ✓ | | 64-bit Linux (kernel 3.2+, glibc 2.17+) with ASAN enabled by default
451+
[`x86_64-unknown-linux-gnuasan`](platform-support/x86_64-unknown-linux-gnuasan.md) | ✓ | | 64-bit Linux (kernel 3.2+, glibc 2.17+) with ASAN enabled by default
452452
[`xtensa-esp32-espidf`](platform-support/esp-idf.md) | ✓ | | Xtensa ESP32
453453
[`xtensa-esp32-none-elf`](platform-support/xtensa.md) | * | | Xtensa ESP32
454454
[`xtensa-esp32s2-espidf`](platform-support/esp-idf.md) | ✓ | | Xtensa ESP32-S2

src/doc/rustc/src/platform-support/x86_64-asan-linux-gnu.md renamed to src/doc/rustc/src/platform-support/x86_64-unknown-linux-gnuasan.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `x86_64-asan-linux-gnu`
1+
# `x86_64-unknown-linux-gnuasan`
22

33
**Tier: 3**
44

@@ -29,7 +29,7 @@ The target can be built by enabling it for a rustc build:
2929

3030
```toml
3131
[build]
32-
target = ["x86_64-asan-linux-gnu"]
32+
target = ["x86_64-unknown-linux-gnuasan"]
3333
```
3434

3535
## Building Rust programs
@@ -42,7 +42,7 @@ this target, you will either need to build Rust with the target enabled (see
4242
Compilation can be done with:
4343

4444
```text
45-
rustc --target x86_64-asan-linux-gnu your-code.rs
45+
rustc --target x86_64-unknown-linux-gnuasan your-code.rs
4646
```
4747

4848
## Testing

tests/assembly-llvm/targets/targets-elf.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,9 @@
670670
//@ revisions: x86_64_unknown_linux_gnux32
671671
//@ [x86_64_unknown_linux_gnux32] compile-flags: --target x86_64-unknown-linux-gnux32
672672
//@ [x86_64_unknown_linux_gnux32] needs-llvm-components: x86
673-
//@ revisions: x86_64_asan_linux_gnu
674-
//@ [x86_64_asan_linux_gnu] compile-flags: --target x86_64-asan-linux-gnu
675-
//@ [x86_64_asan_linux_gnu] needs-llvm-components: x86
673+
//@ revisions: x86_64_unknown_linux_gnuasan
674+
//@ [x86_64_unknown_linux_gnuasan] compile-flags: --target x86_64-unknown-linux-gnuasan
675+
//@ [x86_64_unknown_linux_gnuasan] needs-llvm-components: x86
676676
//@ revisions: x86_64_unknown_linux_musl
677677
//@ [x86_64_unknown_linux_musl] compile-flags: --target x86_64-unknown-linux-musl
678678
//@ [x86_64_unknown_linux_musl] needs-llvm-components: x86

0 commit comments

Comments
 (0)