From 63f20be32199714e3119e4608718fd19b98b2e13 Mon Sep 17 00:00:00 2001 From: Redfire Date: Wed, 6 Dec 2023 17:42:54 +0800 Subject: [PATCH] Added LTO for Windows Release Build CI --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f43c7248..ef1b2c50 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,12 +53,16 @@ jobs: if: matrix.id == 'windows' env: MOZTOOLS_PATH: ${{ github.workspace }}\\target\\dependencies\\moztools-4.0 + MOZ_LTO: full CC: clang-cl CXX: clang-cl AR: llvm-lib LINKER: lld-link + CFLAGS: /clang:-flto=thin /clang:-fuse-ld=lld-link + CXXFLAGS: /clang:-flto=thin /clang:-fuse-ld=lld-link + RUSTFLAGS: -Clinker-plugin-lto -Clinker=lld-link -Clink-arg=/verbose run: | - just build-release -v --target $env:TARGET + just build-release -vv --target $env:TARGET Rename-Item -Path .\target\$env:TARGET\release\cli.exe -NewName spiderfire.exe - name: Build MacOS