Skip to content

Commit

Permalink
LTO
Browse files Browse the repository at this point in the history
  • Loading branch information
qarmin committed Feb 19, 2024
1 parent c58569e commit 213bdd1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ jobs:
- name: Setup rust version
run: rustup default ${{ matrix.toolchain }}

- name: Enable LTO
run: sed -i '' 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
if: ${{ (matrix.type == 'release') }}
# Consider to re-enable, when release build will not take 3 hours
# - name: Enable LTO
# run: sed -i '' 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
# if: ${{ (matrix.type == 'release') }}

- name: Build Release
run: cargo build --release
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
run: |
rustup target add x86_64-pc-windows-gnu
- name: Enable LTO
run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
# - name: Enable LTO
# run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml

- name: Compile Krokiet
run: cargo build --release --target x86_64-pc-windows-gnu --bin krokiet
Expand Down Expand Up @@ -78,8 +78,8 @@ jobs:
- name: Setup rust version
run: rustup default stable-x86_64-pc-windows-gnu

- name: Enable LTO
run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
# - name: Enable LTO
# run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml

- name: Compile Krokiet
run: cargo build --release --bin krokiet
Expand Down
2 changes: 1 addition & 1 deletion krokiet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ once_cell = "1.19"
slint-build = "1.4"

[features]
default = ["winit_femtovg", "winit_software"]
default = ["winit_software"]
skia_opengl = ["slint/renderer-skia-opengl"]
skia_vulkan = ["slint/renderer-skia-vulkan"]
software = ["slint/renderer-software"]
Expand Down

0 comments on commit 213bdd1

Please sign in to comment.