Skip to content

Commit 8536627

Browse files
committed
Switch "hexagon-qurt" 🡪 "hexagon-unknown-qurt"
For consistency w/other targets, let's converge on hexagon-unknown-qurt. Perhaps we'll change rust to add some target aliases - in which case we could use both hexagon-unknown-qurt and hexagon-qurt.
1 parent 5be8956 commit 8536627

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

compiler/rustc_target/src/spec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ supported_targets! {
14871487
("mips64el-unknown-linux-muslabi64", mips64el_unknown_linux_muslabi64),
14881488
("hexagon-unknown-linux-musl", hexagon_unknown_linux_musl),
14891489
("hexagon-unknown-none-elf", hexagon_unknown_none_elf),
1490-
("hexagon-qurt", hexagon_qurt),
1490+
("hexagon-unknown-qurt", hexagon_unknown_qurt),
14911491

14921492
("mips-unknown-linux-uclibc", mips_unknown_linux_uclibc),
14931493
("mipsel-unknown-linux-uclibc", mipsel_unknown_linux_uclibc),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ target | std | host | notes
314314
`csky-unknown-linux-gnuabiv2hf` | ✓ | | C-SKY abiv2 Linux, hardfloat (little endian)
315315
[`hexagon-unknown-linux-musl`](platform-support/hexagon-unknown-linux-musl.md) | ✓ | | Hexagon Linux with musl 1.2.3
316316
[`hexagon-unknown-none-elf`](platform-support/hexagon-unknown-none-elf.md)| * | | Bare Hexagon (v60+, HVX)
317-
[`hexagon-qurt`](platform-support/hexagon-qurt.md)| * | | Hexagon QuRT
317+
[`hexagon-unknown-qurt`](platform-support/hexagon-unknown-qurt.md)| * | | Hexagon QuRT
318318
[`i386-apple-ios`](platform-support/apple-ios.md) | ✓ | | 32-bit x86 iOS (Penryn) [^x86_32-floats-return-ABI]
319319
[`i586-unknown-netbsd`](platform-support/netbsd.md) | ✓ | | 32-bit x86 (original Pentium) [^x86_32-floats-x87]
320320
[`i586-unknown-redox`](platform-support/redox.md) | ✓ | | 32-bit x86 Redox OS (PentiumPro) [^x86_32-floats-x87]

src/doc/rustc/src/platform-support/hexagon-unknown-qurt.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# `hexagon-qurt`
1+
# `hexagon-unknown-qurt`
22

33
**Tier: 3**
44

55
Rust for Hexagon QuRT (Qualcomm Real-Time OS).
66

77
| Target | Description |
88
| -------------------- | ------------|
9-
| hexagon-qurt | Hexagon 32-bit QuRT |
9+
| hexagon-unknown-qurt | Hexagon 32-bit QuRT |
1010

1111
## Target maintainers
1212

@@ -47,9 +47,9 @@ list in `bootstrap.toml`:
4747
[build]
4848
build-stage = 1
4949
host = ["<target for your host>"]
50-
target = ["<target for your host>", "hexagon-qurt"]
50+
target = ["<target for your host>", "hexagon-unknown-qurt"]
5151

52-
[target.hexagon-qurt]
52+
[target.hexagon-unknown-qurt]
5353
cc = "hexagon-clang"
5454
cxx = "hexagon-clang++"
5555
ranlib = "llvm-ranlib"
@@ -74,7 +74,7 @@ configuration with additional linker flags:
7474

7575
```sh
7676
# Build a static executable for QuRT
77-
cargo rustc --target hexagon-qurt -- \
77+
cargo rustc --target hexagon-unknown-qurt -- \
7878
-C link-args="-static -nostdlib" \
7979
-C link-args="-L/opt/Hexagon_SDK/6.3.0.0/rtos/qurt/computev69/lib" \
8080
-C link-args="-lqurt -lc"
@@ -92,7 +92,7 @@ For shared libraries that can be dynamically loaded by QuRT applications:
9292

9393
```sh
9494
# Build a shared object for QuRT
95-
cargo rustc --target hexagon-qurt \
95+
cargo rustc --target hexagon-unknown-qurt \
9696
--crate-type=cdylib -- \
9797
-C link-args="-shared -fPIC" \
9898
-C link-args="-L/opt/Hexagon_SDK/6.3.0.0/rtos/qurt/computev69/lib"
@@ -111,7 +111,7 @@ The target can be customized for different use cases:
111111
### For Static Images
112112
```toml
113113
# In .cargo/config.toml
114-
[target.hexagon-qurt]
114+
[target.hexagon-unknown-qurt]
115115
rustflags = [
116116
"-C", "link-args=-static",
117117
"-C", "link-args=-nostdlib",
@@ -122,7 +122,7 @@ rustflags = [
122122
### For Shared Objects
123123
```toml
124124
# In .cargo/config.toml
125-
[target.hexagon-qurt]
125+
[target.hexagon-unknown-qurt]
126126
rustflags = [
127127
"-C", "link-args=-shared",
128128
"-C", "link-args=-fPIC",
@@ -132,7 +132,7 @@ rustflags = [
132132

133133
## Testing
134134

135-
Since `hexagon-qurt` requires the QuRT runtime environment, testing requires
135+
Since `hexagon-unknown-qurt` requires the QuRT runtime environment, testing requires
136136
either:
137137
- Hexagon hardware with QuRT
138138
- `hexagon-sim`

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@
232232
//@ revisions: hexagon_unknown_none_elf
233233
//@ [hexagon_unknown_none_elf] compile-flags: --target hexagon-unknown-none-elf
234234
//@ [hexagon_unknown_none_elf] needs-llvm-components: hexagon
235-
//@ revisions: hexagon_qurt
236-
//@ [hexagon_qurt] compile-flags: --target hexagon-qurt
237-
//@ [hexagon_qurt] needs-llvm-components: hexagon
235+
//@ revisions: hexagon_unknown_qurt
236+
//@ [hexagon_unknown_qurt] compile-flags: --target hexagon-unknown-qurt
237+
//@ [hexagon_unknown_qurt] needs-llvm-components: hexagon
238238
//@ revisions: i686_pc_nto_qnx700
239239
//@ [i686_pc_nto_qnx700] compile-flags: --target i686-pc-nto-qnx700
240240
//@ [i686_pc_nto_qnx700] needs-llvm-components: x86

0 commit comments

Comments
 (0)