Skip to content

Commit ca34a15

Browse files
committed
github: Build the msvcrt toolchains with LTO and PGO
1 parent 80fad73 commit ca34a15

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/msvcrt.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ jobs:
106106
- uses: actions/checkout@v4
107107
with:
108108
ref: ${{inputs.ref}}
109+
- name: Download profile
110+
uses: dawidd6/action-download-artifact@v6
111+
with:
112+
workflow: build.yml
113+
workflow_conclusion: success
114+
ref: ${{inputs.ref}}
115+
event: push
116+
name: profile
109117
- name: Build
110118
env:
111119
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
@@ -114,7 +122,7 @@ jobs:
114122
TAG: ${{needs.prepare.outputs.TAG}}
115123
run: |
116124
sudo apt-get update && sudo apt-get install libltdl-dev swig autoconf-archive
117-
./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw ${{matrix.arch}} --with-python
125+
./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw ${{matrix.arch}} --with-python --thinlto --pgo
118126
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
119127
cd install
120128
NAME=llvm-mingw-$TAG-${{matrix.crt}}-${{matrix.arch}}

0 commit comments

Comments
 (0)