File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 pgo :
88 description : " Build llvm with PGO"
99 required : false
10- default : false
10+ default : true
1111 type : boolean
1212 no_save_cache :
1313 description : " Don't save caches after success build"
@@ -88,19 +88,19 @@ jobs:
8888 bit : " 64-v4"
8989 compiler : " clang"
9090 command : " ninja -C $buildroot/build$bit toolchains-download || true ; ninja -C $buildroot/build$bit toolchains-download && ninja -C $buildroot/build$bit llvm-host-libcxx && ninja -C $buildroot/build$bit llvm && ninja -C $buildroot/build$bit toolchains-fullclean"
91- extra_option : " -DLLVM_ENABLE_UNSAFE_X86_AVX512_VFABI=ON -DCUSTOM_LIBCXX=ON -DCUSTOM_COMPILER_RT=OFF -DLLVM_ENABLE_LTO=Thin -DTOOLCHAIN_FLAGS=-mno-sse4a"
91+ extra_option : " ${{ inputs.pgo && ' -DLLVM_ENABLE_UNSAFE_X86_AVX512_VFABI=ON -DCUSTOM_LIBCXX=ON -DCUSTOM_COMPILER_RT=OFF -DLLVM_ENABLE_PGO=GEN - DLLVM_ENABLE_LTO=Thin -DLLVM_PROFILE_DATA_DIR=$PWD/profiles/ - DTOOLCHAIN_FLAGS=-mno-sse4a'}} "
9292
9393 - name : Training LLVM
9494 uses : ./action/build_toolchain
95- if : ${{ false }}
95+ if : ${{ inputs.pgo }}
9696 with :
9797 bit : " 64-v4"
9898 compiler : " clang"
9999 command : " ninja -C $buildroot/build$bit rebuild_cache && ninja -C $buildroot/build$bit toolchains-download && ninja -C $buildroot/build$bit llvm-clang && ninja -C $buildroot/build$bit mujs sqlite harfbuzz mimalloc vulkan"
100100 extra_option : " -DLLVM_ENABLE_UNSAFE_X86_AVX512_VFABI=ON -DCUSTOM_LIBCXX=ON -DCUSTOM_COMPILER_RT=OFF -DLLVM_ENABLE_PGO=GEN -DLLVM_ENABLE_LTO=Thin -DENABLE_CCACHE=ON -DLLVM_PROFILE_DATA_DIR=$buildroot/profiles/ -DTOOLCHAIN_FLAGS=-mno-sse4a"
101101
102102 - name : Merging profdata
103- if : ${{ false }}
103+ if : ${{ inputs.pgo }}
104104 run : |
105105 shopt -s globstar
106106 cd mpv-winbuild-cmake/profiles/
@@ -110,7 +110,7 @@ jobs:
110110
111111 - name : Build LLVM with PGO
112112 uses : ./action/build_toolchain
113- if : ${{ false }}
113+ if : ${{ inputs.pgo }}
114114 with :
115115 bit : " 64-v4"
116116 compiler : " clang"
You can’t perform that action at this time.
0 commit comments