https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/150793
>From 2bc5c1ae0c21ebc0bfa28777d19751fe2a811487 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 26 Jul 2025 12:27:08 -0700 Subject: [PATCH 01/65] Add Windows release binary builds --- .github/workflows/release-binaries-windows.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/release-binaries-windows.yml diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml new file mode 100644 index 0000000000000..fa116bc9a379a --- /dev/null +++ b/.github/workflows/release-binaries-windows.yml @@ -0,0 +1,17 @@ +name: Release Binaries Windows + +on: + pull: + + +permissions: + contents: read # Default everything to read-only + +jobs: + build-windows-release: + runs-on: depot-windows-2022-16 + if: github.repository_owner == 'llvm' + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - run: | + llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 >From 860dff2f330bd9c976cdabc77076c83f8da9b8d5 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 26 Jul 2025 12:29:47 -0700 Subject: [PATCH 02/65] Fix --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index fa116bc9a379a..630a2facba8b4 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,4 +14,4 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - run: | - llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 + llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 >From 6533e4438019c747abd4f9b1d6e6c32ce7948c90 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 26 Jul 2025 12:31:42 -0700 Subject: [PATCH 03/65] Fix --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 630a2facba8b4..a7a4dc969ea43 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -1,7 +1,7 @@ name: Release Binaries Windows on: - pull: + pull_request: permissions: >From 04381bbafc5b02ada4eb0cd5e0d43b4e637e3b93 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 26 Jul 2025 12:45:05 -0700 Subject: [PATCH 04/65] Fix --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index a7a4dc969ea43..58a1ad17ee44c 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,4 +14,4 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - run: | - llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 + llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 --local-python >From 1a9ddddab34c48a532b397db2294aa8e2d868a21 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 26 Jul 2025 21:18:40 -0700 Subject: [PATCH 05/65] Fix --- .github/workflows/release-binaries-windows.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 58a1ad17ee44c..86951337aa2ee 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -12,6 +12,8 @@ jobs: runs-on: depot-windows-2022-16 if: github.repository_owner == 'llvm' steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A + with: + ref: llvmorg-20.1.8 - run: | - llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 --local-python + llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 --skip-checkout --local-python >From d2dcb30b6707007267153683615528f274e40dd4 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 11 Aug 2025 20:28:56 +0000 Subject: [PATCH 06/65] Fix --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 86951337aa2ee..6793656c5dcef 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -9,7 +9,7 @@ permissions: jobs: build-windows-release: - runs-on: depot-windows-2022-16 + runs-on: depot-windows-2022-64 if: github.repository_owner == 'llvm' steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A >From ccd8dc7151c6aee351f20efdf21de2fccb5ba72f Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 4 Oct 2025 08:54:35 -0700 Subject: [PATCH 07/65] Disable tests --- llvm/utils/release/build_llvm_release.bat | 34 +++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index 54645d0c6369f..5d016b902162b 100755 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -222,8 +222,8 @@ cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 -ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 +REM ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 +REM ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 cd.. @@ -244,8 +244,8 @@ cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 -ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 +REM ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 +REM ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 ninja package || exit /b 1 cd .. @@ -276,12 +276,12 @@ set cmake_flags=^ cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 -ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 -ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 -ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 -ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 -ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1 +REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 +REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 +REM ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 +REM ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 +REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 +REM ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1 cd.. REM CMake expects the paths that specifies the compiler and linker to be @@ -301,12 +301,12 @@ cd build64 call :do_generate_profile || exit /b 1 cmake -GNinja %cmake_flags% %cmake_profile_flags% %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 -ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 -ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 -ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 -ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 -ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1 +REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 +REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 +REM ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 +REM ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 +REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 +REM ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1 ninja package || exit /b 1 :: generate tarball with install toolchain only off @@ -376,7 +376,7 @@ cd build_arm64 cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 ninja || exit /b 1 REM Check but do not fail on errors. -ninja check-lldb +::ninja check-lldb ::ninja check-llvm || exit /b 1 ::ninja check-clang || exit /b 1 ::ninja check-lld || exit /b 1 >From fd92cc4450c365585f971a28099b47c9ef17958e Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 4 Oct 2025 11:54:35 -0700 Subject: [PATCH 08/65] Disable tests more --- llvm/utils/release/build_llvm_release.bat | 35 ----------------------- 1 file changed, 35 deletions(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index 5d016b902162b..b149a54393f09 100755 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -220,11 +220,6 @@ set cmake_flags=^ cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 -REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 -REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -REM ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 -REM ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 -REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 cd.. REM CMake expects the paths that specifies the compiler and linker to be @@ -242,11 +237,6 @@ mkdir build32 cd build32 cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 -REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 -REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -REM ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 -REM ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 -REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 ninja package || exit /b 1 cd .. @@ -276,12 +266,6 @@ set cmake_flags=^ cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 -REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 -REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -REM ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 -REM ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 -REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 -REM ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1 cd.. REM CMake expects the paths that specifies the compiler and linker to be @@ -301,12 +285,6 @@ cd build64 call :do_generate_profile || exit /b 1 cmake -GNinja %cmake_flags% %cmake_profile_flags% %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 -REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 -REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -REM ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 -REM ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1 -REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 -REM ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1 ninja package || exit /b 1 :: generate tarball with install toolchain only off @@ -350,12 +328,6 @@ cmake -GNinja %cmake_flags% ^ -DCMAKE_CXX_COMPILER=clang-cl.exe ^ %llvm_src%\llvm || exit /b 1 ninja || exit /b 1 -::ninja check-llvm || exit /b 1 -::ninja check-clang || exit /b 1 -::ninja check-lld || exit /b 1 -::ninja check-sanitizer || exit /b 1 -::ninja check-clang-tools || exit /b 1 -::ninja check-clangd || exit /b 1 cd.. REM CMake expects the paths that specifies the compiler and linker to be @@ -376,13 +348,6 @@ cd build_arm64 cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 ninja || exit /b 1 REM Check but do not fail on errors. -::ninja check-lldb -::ninja check-llvm || exit /b 1 -::ninja check-clang || exit /b 1 -::ninja check-lld || exit /b 1 -::ninja check-sanitizer || exit /b 1 -::ninja check-clang-tools || exit /b 1 -::ninja check-clangd || exit /b 1 ninja package || exit /b 1 cd .. >From abd2683c10a259204eacd6746c51f64138d66a14 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 4 Oct 2025 12:23:00 -0700 Subject: [PATCH 09/65] Change ref --- .github/workflows/release-binaries-windows.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 6793656c5dcef..d2a8a52c1695b 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -13,7 +13,5 @@ jobs: if: github.repository_owner == 'llvm' steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - with: - ref: llvmorg-20.1.8 - run: | llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 --skip-checkout --local-python >From efb08ab623720dd1497029cdbf3898740356cc9f Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 18 Oct 2025 13:37:10 -0700 Subject: [PATCH 10/65] Use subst --- .github/workflows/release-binaries-windows.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index d2a8a52c1695b..7f8bdae975797 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,4 +14,6 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | - llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 --skip-checkout --local-python + subst S: ${{ github.workspace }} + - run: | + S:\llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 --skip-checkout --local-python >From 23f5d4a479926fa1b9a1866c7447c8c3ec547b90 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 18 Oct 2025 14:32:56 -0700 Subject: [PATCH 11/65] Use local --- .github/workflows/release-binaries-windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 7f8bdae975797..cf1b0c14324d7 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -9,11 +9,11 @@ permissions: jobs: build-windows-release: - runs-on: depot-windows-2022-64 + runs-on: depot-windows-2022-16 if: github.repository_owner == 'llvm' steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | subst S: ${{ github.workspace }} - run: | - S:\llvm\utils\release\build_llvm_release.bat --x64 --version 20.1.8 --skip-checkout --local-python + S:\llvm\utils\release\build_llvm_release.bat --x64 --version 21.1.3 --local-python >From 421679576d5ab682e0afff703baec5878cc0b686 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 18 Oct 2025 20:08:19 -0700 Subject: [PATCH 12/65] Fix --- .github/workflows/release-binaries-windows.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index cf1b0c14324d7..abb3166675f09 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,6 +14,7 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | - subst S: ${{ github.workspace }} + subst S: ${{ github.workspace }}\llvm\utils\release\ - run: | - S:\llvm\utils\release\build_llvm_release.bat --x64 --version 21.1.3 --local-python + cd S:\ + build_llvm_release.bat --x64 --version 21.1.3 --local-python >From 006890e17c6e5aad2392ff51f9bc53c904da25f2 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 18 Oct 2025 20:26:10 -0700 Subject: [PATCH 13/65] Fix --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index abb3166675f09..a2e1de23ce578 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -17,4 +17,4 @@ jobs: subst S: ${{ github.workspace }}\llvm\utils\release\ - run: | cd S:\ - build_llvm_release.bat --x64 --version 21.1.3 --local-python + .\build_llvm_release.bat --x64 --version 21.1.3 --local-python >From 824b6ba1f1c0af4824e0f088015fffb3d80b8992 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 18 Oct 2025 20:46:32 -0700 Subject: [PATCH 14/65] XXX: fix --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index a2e1de23ce578..40334f1e521f0 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -17,4 +17,4 @@ jobs: subst S: ${{ github.workspace }}\llvm\utils\release\ - run: | cd S:\ - .\build_llvm_release.bat --x64 --version 21.1.3 --local-python + .\build_llvm_release.bat --x64 --version 21.1.3 --local-python --no-checkout >From 7da80e774a8fe4620dd58f8a051e74019770238c Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 18 Oct 2025 21:41:01 -0700 Subject: [PATCH 15/65] Fix typo --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 40334f1e521f0..45da4cdeadd80 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -17,4 +17,4 @@ jobs: subst S: ${{ github.workspace }}\llvm\utils\release\ - run: | cd S:\ - .\build_llvm_release.bat --x64 --version 21.1.3 --local-python --no-checkout + .\build_llvm_release.bat --x64 --version 21.1.3 --local-python --skip-checkout >From 3c6be6c8982bc68b19f867783124b7850becceae Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 00:48:42 +0000 Subject: [PATCH 16/65] Fix paths --- .github/workflows/release-binaries-windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 45da4cdeadd80..2d126ecc4affe 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | - subst S: ${{ github.workspace }}\llvm\utils\release\ + subst S: ${{ github.workspace }} - run: | - cd S:\ + cd S:\llvm\utils\release\ .\build_llvm_release.bat --x64 --version 21.1.3 --local-python --skip-checkout >From 71d8deaeb834e7491d390abeba7bfe5df5fea0a2 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 01:48:55 +0000 Subject: [PATCH 17/65] Add offload --- llvm/utils/release/build_llvm_release.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index 40f3f1dfaca6f..c750516317f74 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -163,7 +163,7 @@ set common_cmake_flags=^ -DCMAKE_CXX_FLAGS="%common_compiler_flags%" ^ -DLLVM_ENABLE_RPMALLOC=ON ^ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld" ^ - -DLLVM_ENABLE_RUNTIMES="compiler-rt;openmp" + -DLLVM_ENABLE_RUNTIMES="compiler-rt;openmp;offload" if "%force-msvc%" == "" ( where /q clang-cl >From 3e7b0951be3de8d9516c04a9dd9d2eb08bc02a85 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 09:05:41 -0700 Subject: [PATCH 18/65] Disable openmp --- llvm/utils/release/build_llvm_release.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index c750516317f74..d11a502dd1b72 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -163,7 +163,7 @@ set common_cmake_flags=^ -DCMAKE_CXX_FLAGS="%common_compiler_flags%" ^ -DLLVM_ENABLE_RPMALLOC=ON ^ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld" ^ - -DLLVM_ENABLE_RUNTIMES="compiler-rt;openmp;offload" + -DLLVM_ENABLE_RUNTIMES="compiler-rt" if "%force-msvc%" == "" ( where /q clang-cl >From a67009d31a992d741198d2fffd88f3db9a1023a7 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 12:21:57 -0700 Subject: [PATCH 19/65] debug --- .github/workflows/release-binaries-windows.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 2d126ecc4affe..db0d7dc805d9f 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -12,6 +12,8 @@ jobs: runs-on: depot-windows-2022-16 if: github.repository_owner == 'llvm' steps: + - run: | + diff - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | subst S: ${{ github.workspace }} >From 4dc458a921b02290dbb4438dce3f0216c8a111ff Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 12:23:33 -0700 Subject: [PATCH 20/65] debug --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index db0d7dc805d9f..6e182d36cd5f3 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -13,7 +13,7 @@ jobs: if: github.repository_owner == 'llvm' steps: - run: | - diff + diff - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | subst S: ${{ github.workspace }} >From b1edfb301c2a461d704699ae84de0f375e99295e Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 14:06:16 -0700 Subject: [PATCH 21/65] Remove subst --- .github/workflows/release-binaries-windows.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 6e182d36cd5f3..4727ea7dfecaa 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -16,7 +16,6 @@ jobs: diff - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | - subst S: ${{ github.workspace }} - - run: | - cd S:\llvm\utils\release\ + #subst S: ${{ github.workspace }} + cd llvm\utils\release\ .\build_llvm_release.bat --x64 --version 21.1.3 --local-python --skip-checkout >From c7d970e80d27386af70c2b1d9afc61ebe51d6841 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 14:12:08 -0700 Subject: [PATCH 22/65] Remove diff --- .github/workflows/release-binaries-windows.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 4727ea7dfecaa..c51aee9fdc1bb 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -12,8 +12,6 @@ jobs: runs-on: depot-windows-2022-16 if: github.repository_owner == 'llvm' steps: - - run: | - diff - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | #subst S: ${{ github.workspace }} >From 84e80554440548efd562bb51f16da831de7cfd8a Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 14:45:55 -0700 Subject: [PATCH 23/65] Fixes --- .github/workflows/release-binaries-windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index c51aee9fdc1bb..8aada497775d5 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,6 +14,6 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | - #subst S: ${{ github.workspace }} - cd llvm\utils\release\ + subst S: ${{ github.workspace }} + cd S:\llvm\utils\release\ .\build_llvm_release.bat --x64 --version 21.1.3 --local-python --skip-checkout >From 4e92806a07de25edbb907f7a9cc889b99f0f7c87 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 15:39:59 -0700 Subject: [PATCH 24/65] Don't run tests so many times --- .github/workflows/release-binaries-windows.yml | 8 ++++++++ llvm/utils/release/build_llvm_release.bat | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 8aada497775d5..4b39471fba7bc 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -17,3 +17,11 @@ jobs: subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ .\build_llvm_release.bat --x64 --version 21.1.3 --local-python --skip-checkout + - if: always() + run: | + S:\llvm\utils\release\llvm_package_21.1.3\build_amd64_stage0\bin\llvm-remarkutil.exe filter S:\llvm\test\tools\llvm-remarkutil/Inputs/filter.yaml | diff S:\llvm\test\tools\llvm-remarkutil/Inputs/filter.yaml - > diff.out + - if: always() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: diff + path: diff.out diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index d11a502dd1b72..055e06418003b 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -278,7 +278,7 @@ cmake -GNinja %cmake_flags% ^ -DLLVM_TARGETS_TO_BUILD=Native ^ %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 -ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 +ninja check-llvm || exit /b 1 ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 if "%arch%"=="amd64" ( @@ -312,7 +312,7 @@ cmake -GNinja %cmake_flags% ^ -DPYTHON_HOME=%PYTHONHOME% ^ %cmake_profile_flags% %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 -ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 +ninja check-llvm || exit /b 1 ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 if "%arch%"=="amd64" ( >From 33283a8d23a88227ee520af5c9dac0b289851e72 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 16:27:33 -0700 Subject: [PATCH 25/65] Autocrlf --- .github/workflows/release-binaries-windows.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 4b39471fba7bc..f585d92771168 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -12,16 +12,11 @@ jobs: runs-on: depot-windows-2022-16 if: github.repository_owner == 'llvm' steps: + - Name: Setup crlf + run: | + git config --global core.autocrlf false - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ .\build_llvm_release.bat --x64 --version 21.1.3 --local-python --skip-checkout - - if: always() - run: | - S:\llvm\utils\release\llvm_package_21.1.3\build_amd64_stage0\bin\llvm-remarkutil.exe filter S:\llvm\test\tools\llvm-remarkutil/Inputs/filter.yaml | diff S:\llvm\test\tools\llvm-remarkutil/Inputs/filter.yaml - > diff.out - - if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 - with: - name: diff - path: diff.out >From 80daeaf2975e620ddc6e547cb226687992434ccd Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 16:29:54 -0700 Subject: [PATCH 26/65] Fix typo --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index f585d92771168..3960492ec136b 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -12,7 +12,7 @@ jobs: runs-on: depot-windows-2022-16 if: github.repository_owner == 'llvm' steps: - - Name: Setup crlf + - name: Setup crlf run: | git config --global core.autocrlf false - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A >From c6b62cb95c70531cf8595a470b29a75eb33a2a7f Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 16:34:57 -0700 Subject: [PATCH 27/65] Fix --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 3960492ec136b..69e0fa4fbf81a 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Setup crlf run: | - git config --global core.autocrlf false + git config --global core.autocrlf=false - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | subst S: ${{ github.workspace }} >From f12b8246f7a8f7163d474f4e841cbdfeedd07cfe Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 16:38:31 -0700 Subject: [PATCH 28/65] Fix --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 69e0fa4fbf81a..3960492ec136b 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Setup crlf run: | - git config --global core.autocrlf=false + git config --global core.autocrlf false - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | subst S: ${{ github.workspace }} >From 83d7b48d0f3da739388b9d3a8088ff5fa6b010c0 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 21 Oct 2025 20:47:24 -0700 Subject: [PATCH 29/65] Setup windows --- .github/workflows/release-binaries-windows.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 3960492ec136b..358f6e1bc373f 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -12,6 +12,9 @@ jobs: runs-on: depot-windows-2022-16 if: github.repository_owner == 'llvm' steps: + - uses: llvm/actions/setup-windows@main + with: + arch: amd64 - name: Setup crlf run: | git config --global core.autocrlf false >From 7c70b552712f150e67ee076f40c9160766101dd1 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Fri, 14 Nov 2025 09:49:28 -0800 Subject: [PATCH 30/65] Update --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 358f6e1bc373f..941eb5b1bbab5 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -22,4 +22,4 @@ jobs: - run: | subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ - .\build_llvm_release.bat --x64 --version 21.1.3 --local-python --skip-checkout + .\build_llvm_release.bat --x64 --version 21.1.4 --local-python --skip-checkout >From 16d8f1e530d1895a070884f20441835fc4fb5a06 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 08:34:54 -0800 Subject: [PATCH 31/65] Fix version --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 941eb5b1bbab5..f6cbc5b5e297a 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -22,4 +22,4 @@ jobs: - run: | subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ - .\build_llvm_release.bat --x64 --version 21.1.4 --local-python --skip-checkout + .\build_llvm_release.bat --x64 --version 22.0.0 --local-python --skip-checkout >From 0e922b69ebbce4fdca5288f9e9d311015840e893 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 10:44:47 -0800 Subject: [PATCH 32/65] Remove subst --- .github/workflows/release-binaries-windows.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index f6cbc5b5e297a..4fdabac3a7c0e 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -20,6 +20,5 @@ jobs: git config --global core.autocrlf false - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | - subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ .\build_llvm_release.bat --x64 --version 22.0.0 --local-python --skip-checkout >From a28d6cae3bfc413a43629f522c39ef0a943c7a4e Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 11:18:10 -0800 Subject: [PATCH 33/65] No subst --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 4fdabac3a7c0e..93cb2cece62d6 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -20,5 +20,5 @@ jobs: git config --global core.autocrlf false - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | - cd S:\llvm\utils\release\ + cd llvm\utils\release\ .\build_llvm_release.bat --x64 --version 22.0.0 --local-python --skip-checkout >From 4c28998caee8d3ecae3541b31369934aa4208d59 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 11:52:17 -0800 Subject: [PATCH 34/65] Revert "No subst" This reverts commit a28d6cae3bfc413a43629f522c39ef0a943c7a4e. --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 93cb2cece62d6..4fdabac3a7c0e 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -20,5 +20,5 @@ jobs: git config --global core.autocrlf false - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | - cd llvm\utils\release\ + cd S:\llvm\utils\release\ .\build_llvm_release.bat --x64 --version 22.0.0 --local-python --skip-checkout >From 44da3b2bbce0650c6ef720b11ff24dcef44e897f Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 11:52:23 -0800 Subject: [PATCH 35/65] Revert "Remove subst" This reverts commit 0e922b69ebbce4fdca5288f9e9d311015840e893. --- .github/workflows/release-binaries-windows.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 4fdabac3a7c0e..f6cbc5b5e297a 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -20,5 +20,6 @@ jobs: git config --global core.autocrlf false - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | + subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ .\build_llvm_release.bat --x64 --version 22.0.0 --local-python --skip-checkout >From 8b243f234af1e28cdeb6ffdf5b3e5115effc0746 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 11:56:40 -0800 Subject: [PATCH 36/65] Fixes for release script --- llvm/utils/release/build_llvm_release.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index 5804459af68f4..a554a1213c5cc 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -347,7 +347,7 @@ if "%arch%"=="amd64" ( set filename=clang+llvm-%version%-aarch64-pc-windows-msvc ) cmake -GNinja %cmake_flags% %cmake_profile_flags% -DLLVM_INSTALL_TOOLCHAIN_ONLY=OFF ^ - -DCMAKE_INSTALL_PREFIX=%build_dir%/%filename% ..\llvm-project\llvm || exit /b 1 + -DCMAKE_INSTALL_PREFIX=%build_dir%/%filename% %llvm_src%\llvm || exit /b 1 ninja install || exit /b 1 :: check llvm_config is present & returns something %build_dir%/%filename%/bin/llvm-config.exe --bindir || exit /b 1 >From eddcf3285fed281be41faed7abbbda4e5c2ba52e Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 13:56:47 -0800 Subject: [PATCH 37/65] Setup python --- .github/workflows/release-binaries-windows.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index f6cbc5b5e297a..452652c75cf06 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -18,6 +18,12 @@ jobs: - name: Setup crlf run: | git config --global core.autocrlf false + - name: Setup Python + id: setup-python + uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 + with: + python-version: '3.13' + pip-install: packaging psutil - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | subst S: ${{ github.workspace }} >From c1d9b44dc25c466b3dedbda084ddf1b87118c045 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 15:29:06 -0800 Subject: [PATCH 38/65] Try to fix python --- llvm/utils/release/build_llvm_release.bat | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index a554a1213c5cc..70077af6a4f29 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -239,7 +239,6 @@ set all_cmake_flags=^ %cmake_flags% ^ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;" ^ %common_lldb_flags% ^ - -DPYTHON_HOME=%PYTHONHOME% ^ -DCMAKE_C_COMPILER=%stage0_bin_dir%/clang-cl.exe ^ -DCMAKE_CXX_COMPILER=%stage0_bin_dir%/clang-cl.exe ^ -DCMAKE_LINKER=%stage0_bin_dir%/lld-link.exe ^ @@ -324,7 +323,6 @@ call :do_generate_profile || exit /b 1 cmake -GNinja %cmake_flags% ^ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;flang;mlir" ^ %common_lldb_flags% ^ - -DPYTHON_HOME=%PYTHONHOME% ^ %cmake_profile_flags% %llvm_src%\llvm || exit /b 1 ninja || ninja || ninja || exit /b 1 ninja check-llvm || exit /b 1 >From 676d58f02dadd2920f87ffb8ef02eb1bd7ea5796 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 17:01:40 -0800 Subject: [PATCH 39/65] More python removal --- llvm/utils/release/build_llvm_release.bat | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index 70077af6a4f29..b0f5a70905140 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -220,7 +220,6 @@ set "stage0_bin_dir=%build_dir%/build32_stage0/bin" set cmake_flags=^ %common_cmake_flags% ^ -DLLVM_ENABLE_RPMALLOC=OFF ^ - -DPython3_ROOT_DIR=%PYTHONHOME% ^ -DLIBXML2_INCLUDE_DIR=%libxmldir%/include/libxml2 ^ -DLIBXML2_LIBRARIES=%libxmldir%/lib/libxml2s.lib @@ -279,7 +278,6 @@ REM Stage0 binaries directory; used in stage1. set "stage0_bin_dir=%build_dir%/build_%arch%_stage0/bin" set cmake_flags=^ %common_cmake_flags% ^ - -DPython3_ROOT_DIR=%PYTHONHOME% ^ -DLIBXML2_INCLUDE_DIR=%libxmldir%/include/libxml2 ^ -DLIBXML2_LIBRARIES=%libxmldir%/lib/libxml2s.lib ^ -DCLANG_DEFAULT_LINKER=lld >From 261e06148c65ba07b1dec7318586b9ae66ac278a Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 20:53:21 -0800 Subject: [PATCH 40/65] Fix python again --- llvm/utils/release/build_llvm_release.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index b0f5a70905140..ba05045283015 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -364,12 +364,12 @@ set python_dir=%1 REM Set Python environment if "%local-python%" == "true" ( FOR /F "delims=" %%i IN ('where python.exe ^| head -1') DO set python_exe=%%i - set PYTHONHOME=!python_exe:~0,-11! +:: set PYTHONHOME=!python_exe:~0,-11! ) else ( %python_dir%/python.exe --version || exit /b 1 - set PYTHONHOME=%python_dir% +:: set PYTHONHOME=%python_dir% ) -set PATH=%PYTHONHOME%;%PATH% +::set PATH=%PYTHONHOME%;%PATH% set "VSCMD_START_DIR=%build_dir%" >From 389030707191bf53930dfe6e5cd411af3ef6a714 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 17 Nov 2025 20:59:36 -0800 Subject: [PATCH 41/65] Fix python --- llvm/utils/release/build_llvm_release.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index ba05045283015..fcbaa94e47a80 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -362,13 +362,13 @@ set PATH=%OLDPATH% set python_dir=%1 REM Set Python environment -if "%local-python%" == "true" ( - FOR /F "delims=" %%i IN ('where python.exe ^| head -1') DO set python_exe=%%i +::if "%local-python%" == "true" ( +:: FOR /F "delims=" %%i IN ('where python.exe ^| head -1') DO set python_exe=%%i :: set PYTHONHOME=!python_exe:~0,-11! -) else ( - %python_dir%/python.exe --version || exit /b 1 +::) else ( +:: %python_dir%/python.exe --version || exit /b 1 :: set PYTHONHOME=%python_dir% -) +::) ::set PATH=%PYTHONHOME%;%PATH% set "VSCMD_START_DIR=%build_dir%" >From 7671714ffb255ad2aaf34d28f05554a7e12324fd Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 18 Nov 2025 08:25:24 -0800 Subject: [PATCH 42/65] Try with python3.9 --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 452652c75cf06..1065028302d66 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -22,7 +22,7 @@ jobs: id: setup-python uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 with: - python-version: '3.13' + python-version: '3.9' pip-install: packaging psutil - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - run: | >From 36a3d0ca6442be130f0deb9eb2e4543b1aebdc08 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 18 Nov 2025 16:54:11 -0800 Subject: [PATCH 43/65] Debug --- .github/workflows/release-binaries-windows.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 1065028302d66..3a523d3935a19 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -12,6 +12,9 @@ jobs: runs-on: depot-windows-2022-16 if: github.repository_owner == 'llvm' steps: + - shell: bash + run: | + find /c -iname 'python3.lib' - uses: llvm/actions/setup-windows@main with: arch: amd64 >From f613030d4f365a689ffa7f9bee872664db9cdf8d Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Tue, 18 Nov 2025 19:51:03 -0800 Subject: [PATCH 44/65] Debug --- llvm/utils/release/build_llvm_release.bat | 32 +++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index fcbaa94e47a80..09335771cd1f1 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -224,10 +224,10 @@ set cmake_flags=^ -DLIBXML2_LIBRARIES=%libxmldir%/lib/libxml2s.lib cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 -ninja || ninja || ninja || exit /b 1 +ninja || exit /b 1 REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 +ninja check-lld || exit /b 1 REM ninja check-runtimes || ninja check-runtimes || ninja check-runtimes || exit /b 1 REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 cd.. @@ -248,10 +248,10 @@ set cmake_flags=%all_cmake_flags:\=/% mkdir build32 cd build32 cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 -ninja || ninja || ninja || exit /b 1 +ninja || exit /b 1 REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 +ninja check-lld || exit /b 1 REM ninja check-runtimes || ninja check-runtimes || ninja check-runtimes || exit /b 1 REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 ninja package || exit /b 1 @@ -289,15 +289,15 @@ if "%arch%"=="arm64" ( cmake -GNinja %cmake_flags% ^ -DLLVM_TARGETS_TO_BUILD=Native ^ %llvm_src%\llvm || exit /b 1 -ninja || ninja || ninja || exit /b 1 +ninja || exit /b 1 ninja check-llvm || exit /b 1 -ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 +ninja check-clang || exit /b 1 +ninja check-lld || exit /b 1 if "%arch%"=="amd64" ( - ninja check-runtimes || ninja check-runtimes || ninja check-runtimes || exit /b 1 + ninja check-runtimes || exit /b 1 ) -ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 -ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1 +ninja check-clang-tools || exit /b 1 +ninja check-clangd || exit /b 1 cd.. REM CMake expects the paths that specifies the compiler and linker to be @@ -322,15 +322,15 @@ cmake -GNinja %cmake_flags% ^ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;flang;mlir" ^ %common_lldb_flags% ^ %cmake_profile_flags% %llvm_src%\llvm || exit /b 1 -ninja || ninja || ninja || exit /b 1 +ninja exit /b 1 ninja check-llvm || exit /b 1 -ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 +ninja check-clang || exit /b 1 +ninja check-lld || exit /b 1 if "%arch%"=="amd64" ( - ninja check-runtimes || ninja check-runtimes || ninja check-runtimes || exit /b 1 + ninja check-runtimes || exit /b 1 ) -ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 -ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1 +ninja check-clang-tools || exit /b 1 +ninja check-clangd || exit /b 1 REM ninja check-flang || ninja check-flang || ninja check-flang || exit /b 1 REM ninja check-mlir || ninja check-mlir || ninja check-mlir || exit /b 1 REM ninja check-lldb || ninja check-lldb || ninja check-lldb || exit /b 1 >From d0587a918aacce4a083896fb1e3fa00505504445 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 19 Nov 2025 15:22:05 -0800 Subject: [PATCH 45/65] Debug --- .github/workflows/release-binaries-windows.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 3a523d3935a19..828905a6fd88e 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -32,3 +32,11 @@ jobs: subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ .\build_llvm_release.bat --x64 --version 22.0.0 --local-python --skip-checkout + - if: always() + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + with: + name: build-dir + # Due to path differences on Windows when running in bash vs running on node, + # we need to search for files in the current workspace. + path: | + S:\llvm\utils\release\llvm_package_22.0.0\build_amd64 >From 302d295b2601aa65db79da2d539423c7e0dc23d1 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 19 Nov 2025 17:43:13 -0800 Subject: [PATCH 46/65] debug --- llvm/utils/release/build_llvm_release.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index 09335771cd1f1..1d96201c1c5e2 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -1,4 +1,4 @@ -@echo off +echo off REM Filter out tests that are known to fail. set "LIT_FILTER_OUT=gh110231.cpp|crt_initializers.cpp|init-order-atexit.cpp|use_after_return_linkage.cpp|initialization-bug.cpp|initialization-bug-no-global.cpp|trace-malloc-unbalanced.test|trace-malloc-2.test|TraceMallocTest" @@ -318,7 +318,7 @@ set cmake_flags=%all_cmake_flags:\=/% mkdir build_%arch% cd build_%arch% call :do_generate_profile || exit /b 1 -cmake -GNinja %cmake_flags% ^ +cmake --trace-expand -GNinja %cmake_flags% ^ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;flang;mlir" ^ %common_lldb_flags% ^ %cmake_profile_flags% %llvm_src%\llvm || exit /b 1 >From 2ffbafc952b3c79b5389627e3279951ea26b990e Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Thu, 20 Nov 2025 09:00:20 -0800 Subject: [PATCH 47/65] Disable tests --- .github/workflows/release-binaries-windows.yml | 10 +--------- llvm/utils/release/build_llvm_release.bat | 8 ++++---- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 828905a6fd88e..b3291db7713d9 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,7 +14,7 @@ jobs: steps: - shell: bash run: | - find /c -iname 'python3.lib' + find /c/hostedtoolcache/ -iname 'python3.lib' - uses: llvm/actions/setup-windows@main with: arch: amd64 @@ -32,11 +32,3 @@ jobs: subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ .\build_llvm_release.bat --x64 --version 22.0.0 --local-python --skip-checkout - - if: always() - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 - with: - name: build-dir - # Due to path differences on Windows when running in bash vs running on node, - # we need to search for files in the current workspace. - path: | - S:\llvm\utils\release\llvm_package_22.0.0\build_amd64 diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index 1d96201c1c5e2..ff23a287b735b 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -296,8 +296,8 @@ ninja check-lld || exit /b 1 if "%arch%"=="amd64" ( ninja check-runtimes || exit /b 1 ) -ninja check-clang-tools || exit /b 1 -ninja check-clangd || exit /b 1 +REM ninja check-clang-tools || exit /b 1 +REM ninja check-clangd || exit /b 1 cd.. REM CMake expects the paths that specifies the compiler and linker to be @@ -329,8 +329,8 @@ ninja check-lld || exit /b 1 if "%arch%"=="amd64" ( ninja check-runtimes || exit /b 1 ) -ninja check-clang-tools || exit /b 1 -ninja check-clangd || exit /b 1 +REM ninja check-clang-tools || exit /b 1 +REM ninja check-clangd || exit /b 1 REM ninja check-flang || ninja check-flang || ninja check-flang || exit /b 1 REM ninja check-mlir || ninja check-mlir || ninja check-mlir || exit /b 1 REM ninja check-lldb || ninja check-lldb || ninja check-lldb || exit /b 1 >From aee79f438ad960c995b2a3589fe4d808559435c2 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Thu, 20 Nov 2025 14:56:46 -0800 Subject: [PATCH 48/65] Retry --- llvm/utils/release/build_llvm_release.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index ff23a287b735b..ce826c442b919 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -248,7 +248,7 @@ set cmake_flags=%all_cmake_flags:\=/% mkdir build32 cd build32 cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 -ninja || exit /b 1 +ninja || ninja || ninja || ninja || exit /b 1 REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 ninja check-lld || exit /b 1 >From d463f0b5a4603732248fae4cbf88c2e66fad3a7d Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Fri, 21 Nov 2025 15:04:26 -0800 Subject: [PATCH 49/65] fixes --- .github/workflows/release-binaries-windows.yml | 4 +++- llvm/utils/release/build_llvm_release.bat | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index b3291db7713d9..3171ae652db60 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -28,7 +28,9 @@ jobs: python-version: '3.9' pip-install: packaging psutil - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A - - run: | + - env: + LDFLAGS: "-Wl,--verbose" + run: | subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ .\build_llvm_release.bat --x64 --version 22.0.0 --local-python --skip-checkout diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index ce826c442b919..480a01a07bb0f 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -322,7 +322,7 @@ cmake --trace-expand -GNinja %cmake_flags% ^ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;flang;mlir" ^ %common_lldb_flags% ^ %cmake_profile_flags% %llvm_src%\llvm || exit /b 1 -ninja exit /b 1 +ninja -v || ninja -v || ninja -v || exit /b 1 ninja check-llvm || exit /b 1 ninja check-clang || exit /b 1 ninja check-lld || exit /b 1 >From dd7aa0ebf73733e43243cc50aa0d7e7ede0f87fe Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 22 Nov 2025 06:17:44 -0800 Subject: [PATCH 50/65] Add upload --- .../workflows/release-binaries-windows.yml | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 3171ae652db60..07aef2a34d74a 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -2,6 +2,16 @@ name: Release Binaries Windows on: pull_request: + workflow_dispatch: + inputs: + release-version: + description: 'Release Version' + required: false + type: string + upload: + description: 'Upload binaries to the release page' + required: true + default: false permissions: @@ -28,9 +38,32 @@ jobs: python-version: '3.9' pip-install: packaging psutil - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A + with: + ref: ${{ (inputs.release-version && format('llvmorg-{0}', inputs.release-version)) || github.sha }} + - id: version + uses: ./.github/workflows/get-llvm-version + - id: variables + shell: bash + run: | + if [ -z "${{ inputs.release-version }} ]; then; + version_string="${{ format('{0}.{1}.{2}', steps.version.outputs.major, steps.version.outputs.minor, steps.version.outputs.patch) }}" + else + version_string="${{inputs.release-version }} + fi + echo "version-string=$version_string" >> $GITHUB_OUTPUT - env: LDFLAGS: "-Wl,--verbose" run: | subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ - .\build_llvm_release.bat --x64 --version 22.0.0 --local-python --skip-checkout + .\build_llvm_release.bat --x64 --version ${{ steps.variables.outputs.version-string }} --local-python --skip-checkout + - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + with: + name: ${{ runner.os }}-${{ runner.arch }}-release-binaries + # Due to path differences on Windows when running in bash vs running on node, + # we need to search for files in the current workspace. + path: | + S:\llvm\utils\release\llvm_package_${{ steps.variables.outputs.version-string }}\build_amd64\LLVM-${{ steps.variables.outputs.version-string }}-win64.exe + S:\llvm\utils\release\llvm_package_${{ steps.variables.outputs.version-string}}\clang+llvm-${{ steps.variables.outputs.version-string }}-x86_64-pc-windows-msvc.tar.xz + + >From f48bd5093ee3210ed75a06392207fcb6ca26edab Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 22 Nov 2025 06:25:57 -0800 Subject: [PATCH 51/65] Fix typo --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 07aef2a34d74a..39a7d217c818d 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -45,7 +45,7 @@ jobs: - id: variables shell: bash run: | - if [ -z "${{ inputs.release-version }} ]; then; + if [ -z "${{ inputs.release-version }} ]; then version_string="${{ format('{0}.{1}.{2}', steps.version.outputs.major, steps.version.outputs.minor, steps.version.outputs.patch) }}" else version_string="${{inputs.release-version }} >From a6364736420b4a88e5e1072d0db6fbc70823bd2e Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 22 Nov 2025 06:38:16 -0800 Subject: [PATCH 52/65] Fix typo --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 39a7d217c818d..229c459207cad 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -48,7 +48,7 @@ jobs: if [ -z "${{ inputs.release-version }} ]; then version_string="${{ format('{0}.{1}.{2}', steps.version.outputs.major, steps.version.outputs.minor, steps.version.outputs.patch) }}" else - version_string="${{inputs.release-version }} + version_string="${{inputs.release-version }}" fi echo "version-string=$version_string" >> $GITHUB_OUTPUT - env: >From af9dc8bcc4171e63bf926191943752a3c09acf77 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 22 Nov 2025 06:48:44 -0800 Subject: [PATCH 53/65] Fix typo --- .github/workflows/release-binaries-windows.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 229c459207cad..081ed0fc2030e 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -22,12 +22,6 @@ jobs: runs-on: depot-windows-2022-16 if: github.repository_owner == 'llvm' steps: - - shell: bash - run: | - find /c/hostedtoolcache/ -iname 'python3.lib' - - uses: llvm/actions/setup-windows@main - with: - arch: amd64 - name: Setup crlf run: | git config --global core.autocrlf false @@ -36,7 +30,6 @@ jobs: uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 with: python-version: '3.9' - pip-install: packaging psutil - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A with: ref: ${{ (inputs.release-version && format('llvmorg-{0}', inputs.release-version)) || github.sha }} @@ -45,7 +38,7 @@ jobs: - id: variables shell: bash run: | - if [ -z "${{ inputs.release-version }} ]; then + if [ -z "${{ inputs.release-version }}" ]; then version_string="${{ format('{0}.{1}.{2}', steps.version.outputs.major, steps.version.outputs.minor, steps.version.outputs.patch) }}" else version_string="${{inputs.release-version }}" >From cd0aee728cf2f7a82094a671ed364d1c45f5f2cf Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Sat, 22 Nov 2025 11:33:50 -0800 Subject: [PATCH 54/65] Undo script hacks --- llvm/utils/release/build_llvm_release.bat | 60 ++++++++++++----------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index 480a01a07bb0f..ec133032bf54f 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -1,4 +1,4 @@ -echo off +@echo off REM Filter out tests that are known to fail. set "LIT_FILTER_OUT=gh110231.cpp|crt_initializers.cpp|init-order-atexit.cpp|use_after_return_linkage.cpp|initialization-bug.cpp|initialization-bug-no-global.cpp|trace-malloc-unbalanced.test|trace-malloc-2.test|TraceMallocTest" @@ -220,14 +220,15 @@ set "stage0_bin_dir=%build_dir%/build32_stage0/bin" set cmake_flags=^ %common_cmake_flags% ^ -DLLVM_ENABLE_RPMALLOC=OFF ^ + -DPython3_ROOT_DIR=%PYTHONHOME% ^ -DLIBXML2_INCLUDE_DIR=%libxmldir%/include/libxml2 ^ -DLIBXML2_LIBRARIES=%libxmldir%/lib/libxml2s.lib cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 -ninja || exit /b 1 +ninja || ninja || ninja || exit /b 1 REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -ninja check-lld || exit /b 1 +ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 REM ninja check-runtimes || ninja check-runtimes || ninja check-runtimes || exit /b 1 REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 cd.. @@ -238,6 +239,7 @@ set all_cmake_flags=^ %cmake_flags% ^ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;" ^ %common_lldb_flags% ^ + -DPYTHON_HOME=%PYTHONHOME% ^ -DCMAKE_C_COMPILER=%stage0_bin_dir%/clang-cl.exe ^ -DCMAKE_CXX_COMPILER=%stage0_bin_dir%/clang-cl.exe ^ -DCMAKE_LINKER=%stage0_bin_dir%/lld-link.exe ^ @@ -248,10 +250,10 @@ set cmake_flags=%all_cmake_flags:\=/% mkdir build32 cd build32 cmake -GNinja %cmake_flags% %llvm_src%\llvm || exit /b 1 -ninja || ninja || ninja || ninja || exit /b 1 +ninja || ninja || ninja || exit /b 1 REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 -ninja check-lld || exit /b 1 +ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 REM ninja check-runtimes || ninja check-runtimes || ninja check-runtimes || exit /b 1 REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 ninja package || exit /b 1 @@ -278,6 +280,7 @@ REM Stage0 binaries directory; used in stage1. set "stage0_bin_dir=%build_dir%/build_%arch%_stage0/bin" set cmake_flags=^ %common_cmake_flags% ^ + -DPython3_ROOT_DIR=%PYTHONHOME% ^ -DLIBXML2_INCLUDE_DIR=%libxmldir%/include/libxml2 ^ -DLIBXML2_LIBRARIES=%libxmldir%/lib/libxml2s.lib ^ -DCLANG_DEFAULT_LINKER=lld @@ -289,15 +292,15 @@ if "%arch%"=="arm64" ( cmake -GNinja %cmake_flags% ^ -DLLVM_TARGETS_TO_BUILD=Native ^ %llvm_src%\llvm || exit /b 1 -ninja || exit /b 1 -ninja check-llvm || exit /b 1 -ninja check-clang || exit /b 1 -ninja check-lld || exit /b 1 +ninja || ninja || ninja || exit /b 1 +ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 +ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 +ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 if "%arch%"=="amd64" ( - ninja check-runtimes || exit /b 1 + ninja check-runtimes || ninja check-runtimes || ninja check-runtimes || exit /b 1 ) -REM ninja check-clang-tools || exit /b 1 -REM ninja check-clangd || exit /b 1 +ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 +ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1 cd.. REM CMake expects the paths that specifies the compiler and linker to be @@ -318,19 +321,20 @@ set cmake_flags=%all_cmake_flags:\=/% mkdir build_%arch% cd build_%arch% call :do_generate_profile || exit /b 1 -cmake --trace-expand -GNinja %cmake_flags% ^ +cmake -GNinja %cmake_flags% ^ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;flang;mlir" ^ %common_lldb_flags% ^ + -DPYTHON_HOME=%PYTHONHOME% ^ %cmake_profile_flags% %llvm_src%\llvm || exit /b 1 -ninja -v || ninja -v || ninja -v || exit /b 1 -ninja check-llvm || exit /b 1 -ninja check-clang || exit /b 1 -ninja check-lld || exit /b 1 +ninja || ninja || ninja || exit /b 1 +ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1 +ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1 +ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1 if "%arch%"=="amd64" ( - ninja check-runtimes || exit /b 1 + ninja check-runtimes || ninja check-runtimes || ninja check-runtimes || exit /b 1 ) -REM ninja check-clang-tools || exit /b 1 -REM ninja check-clangd || exit /b 1 +ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1 +ninja check-clangd || ninja check-clangd || ninja check-clangd || exit /b 1 REM ninja check-flang || ninja check-flang || ninja check-flang || exit /b 1 REM ninja check-mlir || ninja check-mlir || ninja check-mlir || exit /b 1 REM ninja check-lldb || ninja check-lldb || ninja check-lldb || exit /b 1 @@ -362,14 +366,14 @@ set PATH=%OLDPATH% set python_dir=%1 REM Set Python environment -::if "%local-python%" == "true" ( -:: FOR /F "delims=" %%i IN ('where python.exe ^| head -1') DO set python_exe=%%i -:: set PYTHONHOME=!python_exe:~0,-11! -::) else ( -:: %python_dir%/python.exe --version || exit /b 1 -:: set PYTHONHOME=%python_dir% -::) -::set PATH=%PYTHONHOME%;%PATH% +if "%local-python%" == "true" ( + FOR /F "delims=" %%i IN ('where python.exe ^| head -1') DO set python_exe=%%i + set PYTHONHOME=!python_exe:~0,-11! +) else ( + %python_dir%/python.exe --version || exit /b 1 + set PYTHONHOME=%python_dir% +) +set PATH=%PYTHONHOME%;%PATH% set "VSCMD_START_DIR=%build_dir%" >From 81a0b9c35c57e6b762a2c089bc369fb787cae5e2 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Mon, 24 Nov 2025 13:31:41 -0800 Subject: [PATCH 55/65] workflows: Factor out artifact attestation and upload into a composite action Also, switch the release-sources workflow over to use this new action. As a result of this change, the attestation file for the sources will be renamed from attestation.jsonl to $TAG-sources.jsonl. --- .github/workflows/release-sources.yml | 32 ++----- .../upload-release-artifact/action.yml | 92 +++++++++++++++++++ 2 files changed, 102 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/upload-release-artifact/action.yml diff --git a/.github/workflows/release-sources.yml b/.github/workflows/release-sources.yml index 4c47bd7575d99..41f8cf9a0eca1 100644 --- a/.github/workflows/release-sources.yml +++ b/.github/workflows/release-sources.yml @@ -79,30 +79,18 @@ jobs: run: | pip install --require-hashes -r ./llvm/utils/git/requirements.txt - - name: Check Permissions - if: github.event_name != 'pull_request' - env: - GITHUB_TOKEN: ${{ github.token }} - USER_TOKEN: ${{ secrets.RELEASE_TASKS_USER_TOKEN }} - run: | - ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user ${{ github.actor }} --user-token "$USER_TOKEN" check-permissions - name: Create Tarballs run: | ./llvm/utils/release/export.sh ${{ needs.inputs.outputs.export-args }} - - name: Attest Build Provenance - if: github.event_name != 'pull_request' - id: provenance - uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0 - with: - subject-path: "*.xz" - - if: github.event_name != 'pull_request' - run: | - mv ${{ steps.provenance.outputs.bundle-path }} . - - name: Create Tarball Artifacts - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 - with: - path: | - *.xz - attestation.jsonl + - name: Store Tarball Names + id: filenames + run: | + echo "filenames=*.xz" >> $GITHUB_OUTPUT + - name: Upload Artifacts + uses: ./.github/workflows/upload-release-artifact + with: + files: ${{ steps.filenames.outputs.filenames }} + attestation-name: ${{ needs.inputs.outputs.ref }}-sources + upload: false diff --git a/.github/workflows/upload-release-artifact/action.yml b/.github/workflows/upload-release-artifact/action.yml new file mode 100644 index 0000000000000..747dae8e65670 --- /dev/null +++ b/.github/workflows/upload-release-artifact/action.yml @@ -0,0 +1,92 @@ +name: Upload Release Artifact +description: >- + Upload release artifact along with an attestation. The action assumes that + the llvm-project repository has already been checked out. +inputs: + files: + description: >- + Files to be uploaded. This can contain bash wildcards. + required: true + release-version: + description: >- + The release where the artifact will be attached. + required: true + upload: + description: >- + Whether or not to upload the file and attestation to the release. If this + is set to false, then the atteastion will still be generated and attached as + an artifact to the workflow, but won't be uploaded to the release. + default: true + user-token: + description: >- + Token with premissions to read llvm teams that is used to ensure that + the person who triggred the action has permission to upload artifacts. + This is required if upload is true. + requred: false + attestation-name: + description: >- + This will be used for the artifact name that is attached to the workflow and + will be used as the basename for the attestation file which will be called + $attestation-name.jsonl. If this is not set, it will default + to the falue of `files`. + required: false + + +runs: + using: "composite" + steps: + - name: Collect Variables + id: vars + shell: bash + env: + INPUTS_ATTESTATION_NAME: ${{ inputs.attestation-name }} + INPUTS_FILES: ${{ inputs.files }} + run: | + if [ -z "$INPUTS_ATTESTATION_NAME" ]; then + name="$INPUTS_FILES" + else + name="$INPUTS_ATTESTATION_NAME" + fi + echo "attestation-name=$name" >> $GITHUB_OUTPUT + - name: Attest Build Provenance + id: provenance + uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0 + with: + subject-path: ${{ inputs.files }} + + - name: Rename attestation file + shell: bash + run: | + mv ${{ steps.provenance.outputs.bundle-path }} ${{ steps.vars.outputs.attestation-name }}.jsonl + + - name: Upload Build Provenance + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + with: + name: ${{ steps.vars.outputs.attestation-name }} + path: | + ${{ inputs.files }} + ${{ steps.vars.outputs.attestation-name }}.jsonl + + - name: Install Python Requirements + if: inputs.upload == 'true' + shell: bash + run: | + pip install --require-hashes -r ./llvm/utils/git/requirements.txt + + - name: Check Permissions + if: inputs.upload == 'true' + env: + GITHUB_TOKEN: ${{ github.token }} + USER_TOKEN: ${{ inputs.user-token }} + shell: bash + run: | + ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user "$GITHUB_ACTOR" --user-token "$USER_TOKEN" check-permissions + - name: Upload Release + shell: bash + if: inputs.upload == 'true' + run: | + ./llvm/utils/release/github-upload-release.py \ + --token ${{ github.token }} \ + --release ${{ inputs.release-version }} \ + upload \ + --files ${{ inputs.files }} ${{ steps.vars.outputs.attestation-name}}.jsonl >From 5105f2ddc84cc2bc6843352502337b2c57d586e3 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 26 Nov 2025 01:38:34 -0800 Subject: [PATCH 56/65] Lots of changes --- .../workflows/release-binaries-windows.yml | 51 +++++++++++++++---- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 081ed0fc2030e..8f7e0e3bed854 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,13 +14,19 @@ on: default: false -permissions: +permissionks: contents: read # Default everything to read-only jobs: build-windows-release: - runs-on: depot-windows-2022-16 + runs-on: ${{ matrix.runs-on }} if: github.repository_owner == 'llvm' + strategy: + fail-fast: false + matrix: + runs-on: + - depot-windows-2022-16 + - windows-11-arm steps: - name: Setup crlf run: | @@ -43,20 +49,43 @@ jobs: else version_string="${{inputs.release-version }}" fi + case $RUNNER_ARCH in + "X64" ) + installer_arch="win64" + tar_arch="x86_64" + installer_dir_arch="amd64" + script_options="--x64" + ;; + "ARM64" ) + installer_arch="woa64" + tar_arch="aarch64" + installer_dir_arch="arm64" + script_options="--arm64" + ;; + esac + echo "installer-name=LLVM-$version_string-$installer_arch.exe" >> $GITHUB_OUTPUT + echo "tar-name=$tar_arch-pc-windows-msvc.tar.xz" >> $GITHUB_OUTPUT + echo "installer-dir=build_$installer_dir_arch" >> $GITHUB_OUTPUT + echo "script-options=$script_options" >> $GITHUB_OUTPUT echo "version-string=$version_string" >> $GITHUB_OUTPUT - env: LDFLAGS: "-Wl,--verbose" run: | subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ - .\build_llvm_release.bat --x64 --version ${{ steps.variables.outputs.version-string }} --local-python --skip-checkout - - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 - with: - name: ${{ runner.os }}-${{ runner.arch }}-release-binaries - # Due to path differences on Windows when running in bash vs running on node, - # we need to search for files in the current workspace. - path: | - S:\llvm\utils\release\llvm_package_${{ steps.variables.outputs.version-string }}\build_amd64\LLVM-${{ steps.variables.outputs.version-string }}-win64.exe - S:\llvm\utils\release\llvm_package_${{ steps.variables.outputs.version-string}}\clang+llvm-${{ steps.variables.outputs.version-string }}-x86_64-pc-windows-msvc.tar.xz + .\build_llvm_release.bat ${{ steps.variables.outputs.script-options }} --version ${{ steps.variables.outputs.version-string }} --local-python --skip-checkout + # Move installer to top-level directory so it is easier to upload. + mv ${{ steps.variables.outputs.installer-dir }}/${{ steps.variables.outputs.installer-name }} . + - name: Upload Installer + uses: ./.github/workflows/upload-release-artifact + with: + files: ${{ steps.variables.outputs.installer-name }} + upload: false + + - name: Upload Tar + uses: ./.github/workflows/upload-release-artifact + with: + files: ${{ steps.variables.outputs.tar-name }} + upload: false >From 0994cfb20394a30cf4798e3a534a9f84949c0d32 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 26 Nov 2025 01:41:14 -0800 Subject: [PATCH 57/65] Fix --- .github/workflows/release-binaries-windows.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 8f7e0e3bed854..fb2ed4f3c66a9 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -14,8 +14,9 @@ on: default: false -permissionks: - contents: read # Default everything to read-only +permissions: + id-token: write + attestations: write jobs: build-windows-release: >From 16e2c7765626728076fb2fa35c20f8cb644cf091 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 26 Nov 2025 01:43:05 -0800 Subject: [PATCH 58/65] Fixes to disable python --- .github/workflows/release-binaries-windows.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index fb2ed4f3c66a9..cc743585a9a96 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -32,11 +32,11 @@ jobs: - name: Setup crlf run: | git config --global core.autocrlf false - - name: Setup Python - id: setup-python - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 - with: - python-version: '3.9' +# - name: Setup Python +# id: setup-python +# uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 +# with: +# python-version: '3.9' - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1A with: ref: ${{ (inputs.release-version && format('llvmorg-{0}', inputs.release-version)) || github.sha }} >From 60eb73495410a27b085e7b91b375939bf2725ed2 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 26 Nov 2025 10:26:02 -0800 Subject: [PATCH 59/65] Fix verbose flag --- .github/workflows/release-binaries-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index cc743585a9a96..c9452ec7032da 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -70,7 +70,7 @@ jobs: echo "script-options=$script_options" >> $GITHUB_OUTPUT echo "version-string=$version_string" >> $GITHUB_OUTPUT - env: - LDFLAGS: "-Wl,--verbose" + LDFLAGS: "/verbose" run: | subst S: ${{ github.workspace }} cd S:\llvm\utils\release\ >From 0e5f6bd4b1a595745c51c4a03df277684acadae3 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 26 Nov 2025 12:45:59 -0800 Subject: [PATCH 60/65] lldb debug --- .../Plugins/ScriptInterpreter/Python/Interfaces/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/CMakeLists.txt b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/CMakeLists.txt index 50569cdefaafa..c71e1874226d4 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/CMakeLists.txt +++ b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/CMakeLists.txt @@ -43,4 +43,6 @@ add_lldb_library(lldbPluginScriptInterpreterPythonInterfaces PLUGIN ${LLDB_LIBEDIT_LIBS} ) +message("PYTHON3 LIBRARIES: ${Python3_LIBRARIES} LIBEDIT LIBS: ${LLDB_LIBEDIT_LIBS}") + >From 911b195d9a7c717fe3c73efa11c0afddda47d9ca Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 26 Nov 2025 14:52:27 -0800 Subject: [PATCH 61/65] Debug --- .github/workflows/release-binaries-windows.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index c9452ec7032da..adc2261d1c32f 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -31,6 +31,7 @@ jobs: steps: - name: Setup crlf run: | + cat C:/hostedtoolcache/windows/Python/3.9.13/x64/pyconfig.h git config --global core.autocrlf false # - name: Setup Python # id: setup-python >From 23ac07e323c5bf43f876ac94c3e92893ede5accf Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 26 Nov 2025 14:54:40 -0800 Subject: [PATCH 62/65] Debug --- .github/workflows/release-binaries-windows.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index adc2261d1c32f..daff93bc29b3a 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -30,8 +30,9 @@ jobs: - windows-11-arm steps: - name: Setup crlf + shell: bash run: | - cat C:/hostedtoolcache/windows/Python/3.9.13/x64/pyconfig.h + cat /c/hostedtoolcache/windows/Python/3.9.13/x64/pyconfig.h git config --global core.autocrlf false # - name: Setup Python # id: setup-python >From f298a1da4ea8486db699518dd067abbbd25665b3 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 26 Nov 2025 14:56:38 -0800 Subject: [PATCH 63/65] Debug --- .github/workflows/release-binaries-windows.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index daff93bc29b3a..1938f822d28f0 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -32,7 +32,9 @@ jobs: - name: Setup crlf shell: bash run: | - cat /c/hostedtoolcache/windows/Python/3.9.13/x64/pyconfig.h + for f in `find /c/hostedtoolcache/windows/Python/3.9.13/x64/ -iname pyconfig.h`; do + cat $f + done git config --global core.autocrlf false # - name: Setup Python # id: setup-python >From b9b23cbae9af28b09930d75013b63bf274289d84 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Wed, 26 Nov 2025 15:16:44 -0800 Subject: [PATCH 64/65] Python fix --- llvm/utils/release/build_llvm_release.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat index ec133032bf54f..f506fb9d52bf1 100644 --- a/llvm/utils/release/build_llvm_release.bat +++ b/llvm/utils/release/build_llvm_release.bat @@ -191,6 +191,7 @@ if "%force-msvc%" == "" ( set common_lldb_flags=^ -DLLDB_RELOCATABLE_PYTHON=1 ^ -DLLDB_EMBED_PYTHON_HOME=OFF ^ + -DLLDB_ENABLE_PYTHON_LIMITED_API=OFF ^ -DLLDB_ENABLE_LIBXML2=OFF set cmake_profile_flags="" >From 1764bd5622f3216ef5ebf35bdbbc7bb17c197638 Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Thu, 27 Nov 2025 06:47:35 -0800 Subject: [PATCH 65/65] Fix moving binaries --- .github/workflows/release-binaries-windows.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-binaries-windows.yml b/.github/workflows/release-binaries-windows.yml index 1938f822d28f0..7a8041d98e909 100644 --- a/.github/workflows/release-binaries-windows.yml +++ b/.github/workflows/release-binaries-windows.yml @@ -80,7 +80,8 @@ jobs: cd S:\llvm\utils\release\ .\build_llvm_release.bat ${{ steps.variables.outputs.script-options }} --version ${{ steps.variables.outputs.version-string }} --local-python --skip-checkout # Move installer to top-level directory so it is easier to upload. - mv ${{ steps.variables.outputs.installer-dir }}/${{ steps.variables.outputs.installer-name }} . + mv ${{ steps.variables.outputs.installer-dir }}\${{ steps.variables.outputs.installer-name }} . + mv ${{ steps.variables.outputs.installer-dir }}\${{ steps.variables.outputs.tar-name }} . - name: Upload Installer uses: ./.github/workflows/upload-release-artifact _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
