Skip to content

Commit

Permalink
remove lto support because it isn't compatible to rftrace
Browse files Browse the repository at this point in the history
- remove obsolete "instrument" feature in applications,
  which aren't used as instrumentation examples
  • Loading branch information
stlankes committed Jan 31, 2021
1 parent 997735f commit c476784
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ jobs:
- name: Building release version
run:
cargo build -p rusty_demo -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit --release
env:
RUSTFLAGS: -Clinker-plugin-lto
- name: Build loader (unix)
working-directory: loader
run: make
Expand Down
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ build:demo:
image: ${CI_REGISTRY_IMAGE}
script:
- cargo build -p rusty_demo
- RUSTFLAGS="-Clinker-plugin-lto" cargo build -p rusty_demo --release
- cargo build -p rusty_demo --release
artifacts:
paths:
- target/x86_64-unknown-hermit/debug/rusty_demo
Expand All @@ -48,7 +48,7 @@ build:httpd:
stage: build
image: ${CI_REGISTRY_IMAGE}
script:
- RUSTFLAGS="-Clinker-plugin-lto" cargo build --manifest-path examples/httpd/Cargo.toml --no-default-features --features pci,acpi,smoltcp,vga,dhcpv4 --release
- cargo build --manifest-path examples/httpd/Cargo.toml --no-default-features --features pci,acpi,smoltcp,vga,dhcpv4 --release
artifacts:
paths:
- target/x86_64-unknown-hermit/release/httpd
Expand Down
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exclude = ["target", "loader", "libhermit-rs"]
opt-level = 3
debug = false
rpath = false
lto = "thin"
lto = false
debug-assertions = false

[profile.dev]
Expand Down
3 changes: 1 addition & 2 deletions benches/micro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ pci = ["hermit-sys/pci"]
acpi = ["hermit-sys/acpi"]
fsgsbase = ["hermit-sys/fsgsbase"]
smp = ["hermit-sys/smp"]
instrument = ["hermit-sys/instrument"]

[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
lto = false
debug-assertions = false

[profile.dev]
Expand Down
1 change: 0 additions & 1 deletion benches/netbench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ acpi = ["hermit-sys/acpi"]
fsgsbase = ["hermit-sys/fsgsbase"]
smp = ["hermit-sys/smp"]
smoltcp = ["hermit-sys/smoltcp"]
instrument = ["hermit-sys/instrument"]

[[bin]]
name = "server-bw"
Expand Down
1 change: 0 additions & 1 deletion examples/httpd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ acpi = ["hermit-sys/acpi"]
fsgsbase = ["hermit-sys/fsgsbase"]
smp = ["hermit-sys/smp"]
smoltcp = ["hermit-sys/smoltcp"]
instrument = ["hermit-sys/instrument"]

[profile.release]
opt-level = 3
Expand Down

0 comments on commit c476784

Please sign in to comment.