Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
chore(init): specify a target explicitly
Browse files Browse the repository at this point in the history
To avoid to compile `build.rs` wrongly. Without this it will be compiled
with `kernel.ld` as specified in `.cargo/config.toml`. See rust-lang/cargo#6375 (comment).
  • Loading branch information
toku-sa-n committed Jun 29, 2021
1 parent 4a1655b commit ef4a4f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[build]
target = "x86_64-unknown-linux-gnu"

[target.x86_64-unknown-linux-gnu]
rustflags = [
"-C", "code-model=kernel",
"-C", "link-args=-T kernel/kernel.ld",
Expand Down

0 comments on commit ef4a4f3

Please sign in to comment.