Skip to content

Commit 08a392e

Browse files
committed
Fix cmake loookpu
1 parent aa2fdab commit 08a392e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-binaries.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
# at Microsoft.Tools.WindowsInstallerXml.Cab.WixCreateCab.Complete(IntPtr newCabNamesCallBackAddress)
159159
# at Microsoft.Tools.WindowsInstallerXml.CabinetBuilder.CreateCabinet(CabinetWorkItem cabinetWorkItem)
160160
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
161-
#target_cmake_flags="$target_cmake_flags -DLibXml2_DIR=/s/libxml-install/lib/cmake/libxml2-2.9.10/ -DLLVM_ENABLE_LIBXML2=FORCE_ON -DLIBXML2_LIBRARIES=/s/libxml-install/lib/libxml2s.lib -DLIBXML2_INCLUDE_DIR=/s/libxml-install/include/libxml2"
161+
target_cmake_flags="$target_cmake_flags -DLLVM_ENABLE_LIBXML2=FORCE_ON"
162162
fi
163163
164164
echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
@@ -275,11 +275,13 @@ jobs:
275275
id: build
276276
shell: bash
277277
run: |
278+
ls -l /c/vcpkg/packages/libxml2_x64-windows/
278279
# There were some issues on the ARM64 MacOS runners with trying to build x86 object,
279280
# so we need to set some extra cmake flags to disable this.
280281
cmake -G Ninja -S llvm -B ${{ steps.setup-stage.outputs.build-prefix }}/build \
281282
${{ needs.prepare.outputs.target-cmake-flags }} \
282283
-C clang/cmake/caches/Release.cmake \
284+
-DCMAKE_PREFIX_PATH=/c/vcpkg/packages/libxml2_x64-windows/ \
283285
-DCMAKE_CXX_FLAGS=-DLIBXML_STATIC \
284286
-DCMAKE_C_FLAGS=-DLIBXML_STATIC \
285287
-DBOOTSTRAP_BOOTSTRAP_CPACK_PACKAGE_FILE_NAME="${{ needs.prepare.outputs.release-binary-basename }}"

0 commit comments

Comments
 (0)