Skip to content

Commit 3b93668

Browse files
committed
WIP: Build macos with PGO
1 parent 998461b commit 3b93668

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
retention-days: 7
6666

6767
linux-stage1:
68-
if: false
6968
needs: [prepare]
7069
runs-on: ubuntu-22.04
7170
steps:
@@ -129,6 +128,7 @@ jobs:
129128

130129
# Build a cross compiler for Linux, targeting Windows.
131130
linux:
131+
if: false
132132
needs: [prepare, linux-stage1, linux-profile]
133133
runs-on: ubuntu-22.04
134134
steps:
@@ -173,6 +173,7 @@ jobs:
173173
# Crosscompile the toolchain for running on Linux on a different architecture, bundle the runtime
174174
# libraries that were built in the 'linux-stage1' step above.
175175
linux-cross-aarch64:
176+
if: false
176177
needs: [linux-stage1, linux-profile, prepare]
177178
runs-on: ubuntu-22.04
178179
steps:
@@ -287,7 +288,7 @@ jobs:
287288

288289
# Build a cross compiler for macOS, targeting Windows.
289290
macos:
290-
needs: [prepare, macos-stage1]
291+
needs: [prepare, macos-stage1, linux-profile]
291292
runs-on: macos-latest
292293
steps:
293294
- uses: actions/checkout@v4
@@ -299,6 +300,9 @@ jobs:
299300
tar -Jxf llvm-*.tar.xz
300301
rm llvm-*.tar.xz
301302
mv llvm* $HOME/llvm
303+
- uses: actions/download-artifact@v4
304+
with:
305+
name: profile
302306
- name: Build
303307
env:
304308
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
@@ -312,7 +316,7 @@ jobs:
312316
# form. Therefore, autodetection will pick them up, but linking
313317
# universal binaries fails as those libraries are unavailable in the
314318
# other (x86_64) architecture form.
315-
MACOS_REDIST=1 LLVM_CMAKEFLAGS="-DLLVM_ENABLE_ZSTD=OFF -DLLDB_ENABLE_PYTHON=OFF" ./build-all.sh $HOME/llvm $(pwd)/install/llvm-mingw --thinlto
319+
MACOS_REDIST=1 LLVM_CMAKEFLAGS="-DLLVM_ENABLE_ZSTD=OFF -DLLDB_ENABLE_PYTHON=OFF" ./build-all.sh $HOME/llvm $(pwd)/install/llvm-mingw --thinlto --pgo
316320
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
317321
./test-libcxx-module.sh $(pwd)/install/llvm-mingw
318322
./run-tests.sh $(pwd)/install/llvm-mingw

0 commit comments

Comments
 (0)