mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Get LLVM from chocolatey (#30140)
LLVM is the largest package that we get from servo-build-deps, so installing it via chocolatey should reduce the amount of data that we transfer from that source. In addition, it's one less dependency that we have to manage. It also seems that installing LLVM to the default location with choco means that we no longer have to set the LIBCLANG_PATH environment variable for bindgen. Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
078785217e
commit
d6ded03a65
4 changed files with 6 additions and 7 deletions
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
|
@ -53,6 +53,8 @@ jobs:
|
|||
Start-BitsTransfer -Source https://github.com/wixtoolset/wix3/releases/download/wix3111rtm/wix311-binaries.zip -Destination C:\\wix311-binaries.zip
|
||||
Expand-Archive C:\\wix311-binaries.zip -DestinationPath C:\\wix
|
||||
echo "C:\\wix" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
- name: Remove msys from PATH # see https://github.com/actions/runner-images/issues/2208
|
||||
run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
- name: Bootstrap
|
||||
|
|
|
@ -468,12 +468,9 @@ class CommandBase(object):
|
|||
|
||||
effective_target = self.cross_compile_target or servo.platform.host_triple()
|
||||
if "msvc" in effective_target:
|
||||
util.append_paths_to_env(env, "PATH", path.join(self.msvc_package_dir("llvm"), "bin"))
|
||||
|
||||
# These two environment variables are necessary for building mozjs. It would
|
||||
# be nice to be able to set them in the cargo configuration somehow, but they
|
||||
# are platform-dependent.
|
||||
env["LIBCLANG_PATH"] = path.join(self.msvc_package_dir("llvm"), "lib")
|
||||
# This environment variable is necessary for building mozjs. It would
|
||||
# be nice to be able to set it in the cargo configuration somehow, but it
|
||||
# is platform-dependent.
|
||||
env["MOZILLA_BUILD"] = path.join(self.msvc_package_dir("moztools"))
|
||||
|
||||
# Always build harfbuzz from source
|
||||
|
|
|
@ -19,7 +19,6 @@ from .base import Base
|
|||
|
||||
DEPS_URL = "https://github.com/servo/servo-build-deps/releases/download/msvc-deps/"
|
||||
DEPENDENCIES = {
|
||||
"llvm": "15.0.5",
|
||||
"moztools": "3.2",
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<packages>
|
||||
<package id="cmake" version="3.26.4" installArguments="ADD_CMAKE_TO_PATH=System"/>
|
||||
<package id="git"/>
|
||||
<package id="llvm"/>
|
||||
<package id="ninja"/>
|
||||
<package id="python"/>
|
||||
<package id="python3-virtualenv"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue