Skip to content

Commit 2a3bb93

Browse files
authored
Merge pull request #26 from xdoardo/master
Disable LIBXML2 in Windows
2 parents 0378498 + 5f14742 commit 2a3bb93

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

.github/workflows/ci.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,14 @@ jobs:
7070
run: |
7171
brew install ninja
7272
73-
- name: Install `ninja` on Windows
74-
if: startsWith(matrix.target.id, 'windows-')
75-
shell: bash
76-
run: |
77-
choco install ninja
73+
#- name: Install `ninja` on Windows
74+
# if: startsWith(matrix.target.id, 'windows-')
75+
# shell: bash
76+
# run: |
77+
# choco install ninja
78+
- name: Setup MSVC (Windows)
79+
uses: ilammy/msvc-dev-cmd@v1
80+
if: matrix.target.id == 'windows-amd64'
7881

7982
- name: Build
8083
if: matrix.target.id != 'windows-amd64' && matrix.target.id != 'linux-aarch64' && matrix.target.id != 'linux-riscv64'
@@ -94,10 +97,11 @@ jobs:
9497
run: |
9598
./build.sh ${{ matrix.llvm_version }} ${{ matrix.llvm_repo_url }} riscv64
9699
100+
97101
- name: Build (Windows)
98102
if: matrix.target.id == 'windows-amd64'
99-
shell: |
100-
powershell -Command "& '{0}'"
103+
#shell: |
104+
# powershell -Command "& '{0}'"
101105
run: |
102106
./build.ps1 ${{ matrix.llvm_version }} ${{ matrix.llvm_repo_url }}
103107

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ assets](https://github.com/wasmerio/llvm-custom-builds/releases).
4949
</thead>
5050
<tbody>
5151
<tr>
52-
<td rowspan="5">18</td>
52+
<td rowspan="6">18</td>
5353
<td rowspan="3">amd64</td>
5454
<td>Darwin</td>
5555
<td><a href="https://github.com/wasmerio/llvm-custom-builds/releases/download/18.x/llvm-darwin-amd64.tar.xz">download</a></td>
@@ -66,14 +66,16 @@ assets](https://github.com/wasmerio/llvm-custom-builds/releases).
6666
<td rowspan="2">aarch64</td>
6767
<td>Linux</td>
6868
<td><a href="https://github.com/wasmerio/llvm-custom-builds/releases/download/18.x/llvm-linux-aarch64.tar.xz">download</a></td>
69+
</tr>
70+
<tr>
6971
<td>Darwin</td>
7072
<td><a href="https://github.com/wasmerio/llvm-custom-builds/releases/download/18.x/llvm-darwin-aarch64.tar.xz">download</a></td>
7173
</tr>
72-
<tr>
74+
</tr>
7375
<td>riscv64</td>
7476
<td>Linux</td>
7577
<td><a href="https://github.com/wasmerio/llvm-custom-builds/releases/download/18.x/llvm-linux-riscv64.tar.xz">download</a></td>
76-
</tr>
78+
<tr>
7779
<tr>
7880
<td rowspan="5">16</td>
7981
<td rowspan="3">amd64</td>

build.ps1

+7-1
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,22 @@ $CMAKE_ARGUMENTS = ""
3838
# Adjust cross compilation
3939
$CROSS_COMPILE = ""
4040

41-
# Run `cmake` to configure the project.
41+
# Run `cmake` to configure the project, using MSVC.
42+
$CMAKE_CXX_COMPILER="cl.exe"
43+
$CMAKE_C_COMPILER="cl.exe"
44+
$CMAKE_LINKER_TYPE="MSVC"
45+
4246
cmake `
4347
-G "Ninja" `
4448
-DCMAKE_BUILD_TYPE=MinSizeRel `
4549
-DCMAKE_INSTALL_PREFIX=destdir `
4650
-DLLVM_ENABLE_PROJECTS="clang;lld" `
4751
-DLLVM_ENABLE_TERMINFO=OFF `
4852
-DLLVM_ENABLE_ZLIB=OFF `
53+
-DLLVM_ENABLE_LIBXML2=OFF `
4954
-DLLVM_INCLUDE_DOCS=OFF `
5055
-DLLVM_INCLUDE_EXAMPLES=OFF `
56+
-DLLVM_INCLUDE_GO_TESTS=OFF `
5157
-DLLVM_INCLUDE_TESTS=OFF `
5258
-DLLVM_INCLUDE_TOOLS=ON `
5359
-DLLVM_INCLUDE_UTILS=OFF `

0 commit comments

Comments
 (0)