Skip to content

Commit dfc7f63

Browse files
committed
Complete migration to x86_64-unknown-none
Replaces remaining uses of x86_64-unknown-hermitkernel
1 parent 57f2f36 commit dfc7f63

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.cargo/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[alias]
22
xtask = "run --package xtask --"
33

4-
[target.x86_64-unknown-none-hermitkernel]
4+
[target.x86_64-unknown-none]
55
runner = "tests/hermit_test_runner.py"

.github/workflows/doc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ jobs:
3030
env:
3131
RUSTDOCFLAGS: -D warnings
3232
run: |
33-
cargo doc -Z build-std=core,alloc --package rusty-hermit --no-deps --document-private-items --target targets/x86_64-unknown-none-hermitkernel.json
33+
cargo doc -Z build-std=core,alloc --package rusty-hermit --no-deps --document-private-items --target x86_64-unknown-none
3434
cargo doc -Z build-std=core,alloc --package rusty-hermit --no-deps --document-private-items --target targets/aarch64-unknown-none-hermitkernel.json

.github/workflows/publish_docs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
sudo apt-get update
2222
sudo apt-get install nasm
2323
- name: Generate documentation
24-
run: cargo doc -Zbuild-std=core,alloc --target targets/x86_64-unknown-none-hermitkernel.json --package rusty-hermit
24+
run: cargo doc -Zbuild-std=core,alloc --target x86_64-unknown-none --package rusty-hermit
2525
- name: Generate index.html
2626
run: |
27-
cat > target/x86_64-unknown-none-hermitkernel/doc/index.html <<EOL
27+
cat > target/x86_64-unknown-none/doc/index.html <<EOL
2828
<!doctype html>
2929
<html>
3030
<head>
@@ -41,6 +41,6 @@ jobs:
4141
uses: crazy-max/ghaction-github-pages@v2
4242
with:
4343
target_branch: gh-pages
44-
build_dir: target/x86_64-unknown-none-hermitkernel/doc
44+
build_dir: target/x86_64-unknown-none/doc
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitlab-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ test:integration:
5959
- python3 --version
6060
- HERMIT_LOG_LEVEL_FILTER=Debug cargo test --test '*' --no-fail-fast -Z build-std=core,alloc
6161
-Z build-std-features=compiler-builtins-mem --no-default-features --features=pci,acpi
62-
--target targets/x86_64-unknown-none-hermitkernel.json -- --veryverbose
62+
--target x86_64-unknown-none -- --veryverbose
6363
- HERMIT_LOG_LEVEL_FILTER=Debug cargo test --test '*' --no-fail-fast -Z build-std=core,alloc
6464
-Z build-std-features=compiler-builtins-mem --no-default-features --features=pci,acpi
65-
--target targets/x86_64-unknown-none-hermitkernel.json -- --num_cores 2
65+
--target x86_64-unknown-none -- --num_cores 2
6666
--veryverbose
6767
tags:
6868
- privileged

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ rustup component add rust-src llvm-tools-preview
3030
You can then build `libhermit-rs` with the following command
3131

3232
```sh
33-
cargo build -Z build-std=core,alloc,panic_abort --target targets/x86_64-unknown-none-hermitkernel.json
33+
cargo xtask build --arch x86_64
3434
```
3535

36-
The resulting library then can be found in `target/x86_64-unknown-none-hermitkernel/debug/libhermit.a`
36+
The resulting library then can be found in `target/x86_64/debug/libhermit.a`
3737

3838

3939
### Control the kernel messages verbosity
@@ -44,7 +44,7 @@ You can change it by setting it at compile time to a string matching the name of
4444
If the variable is not set, or the name doesn't match, then `LevelFilter::Info` is used by default.
4545

4646
```sh
47-
$ HERMIT_LOG_LEVEL_FILTER=Debug cargo build -Z build-std=core,alloc,panic_abort --target targets/x86_64-unknown-none-hermitkernel.json
47+
$ HERMIT_LOG_LEVEL_FILTER=Debug cargo xtask build --arch x86_64
4848
```
4949

5050
## Credits

0 commit comments

Comments
 (0)