Skip to content

Commit fc6de5c

Browse files
authored
remove hint to enable LTO
See issue #125
1 parent 5506bd4 commit fc6de5c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -152,24 +152,6 @@ qemu-system-x86_64 ... -append "kernel-arguments -- application-arguments"
152152

153153
You are not happy with `Hello World` yet?
154154

155-
### Link Time Optimization (LTO)
156-
157-
To enable *Link Time Optimization* (LTO), please extend the release configuration in *Cargo.toml* as follows:
158-
159-
```toml
160-
# Cargo.toml
161-
[profile.release]
162-
opt-level = 3
163-
lto = "thin"
164-
```
165-
166-
In addition, the [Linker-plugin LTO](https://doc.rust-lang.org/rustc/linker-plugin-lto.html) have to be enabled by setting the compiler flag `linker-plugin-lto`.
167-
In this case, the release version have to build as follows:
168-
169-
```sh
170-
RUSTFLAGS="-Clinker-plugin-lto" cargo build -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit --release
171-
```
172-
173155
### Controlling kernel message verbosity
174156

175157
RustyHermit uses the lightweight logging crate [log](https://github.com/rust-lang/log) to print kernel messages.

0 commit comments

Comments
 (0)