Update llvmlite to 0.43 and llvm to 15, as in MSYS2

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2024-07-10 16:43:37 +08:00 committed by Sébastien Bourdeauducq
parent e9f1b9d4ff
commit 4a88693c32

View File

@ -101,14 +101,14 @@
llvmlite-new = pkgs.python3Packages.buildPythonPackage rec { llvmlite-new = pkgs.python3Packages.buildPythonPackage rec {
pname = "llvmlite"; pname = "llvmlite";
version = "0.40.1"; version = "0.43.0";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "numba"; owner = "numba";
repo = "llvmlite"; repo = "llvmlite";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-gPEda9cMEsruvBt8I2VFfsTKZaPsNDgqx2Y9n0MSc4Y="; sha256 = "sha256-5QBSRDb28Bui9IOhGofj+c7Rk7J5fNv5nPksEPY/O5o=";
}; };
nativeBuildInputs = [ pkgs.llvm_14 ]; nativeBuildInputs = [ pkgs.llvm_15 ];
# Disable static linking # Disable static linking
# https://github.com/numba/llvmlite/issues/93 # https://github.com/numba/llvmlite/issues/93
postPatch = '' postPatch = ''
@ -117,7 +117,7 @@
''; '';
# Set directory containing llvm-config binary # Set directory containing llvm-config binary
preConfigure = '' preConfigure = ''
export LLVM_CONFIG=${pkgs.llvm_14.dev}/bin/llvm-config export LLVM_CONFIG=${pkgs.llvm_15.dev}/bin/llvm-config
''; '';
}; };
@ -134,7 +134,7 @@
nativeBuildInputs = [ pkgs.qt5.wrapQtAppsHook ]; nativeBuildInputs = [ pkgs.qt5.wrapQtAppsHook ];
# keep llvm_x and lld_x in sync with llvmlite # keep llvm_x and lld_x in sync with llvmlite
propagatedBuildInputs = [ pkgs.llvm_14 pkgs.lld_14 sipyco.packages.x86_64-linux.sipyco pythonparser llvmlite-new pkgs.qt5.qtsvg artiq-comtools.packages.x86_64-linux.artiq-comtools ] propagatedBuildInputs = [ pkgs.llvm_15 pkgs.lld_15 sipyco.packages.x86_64-linux.sipyco pythonparser llvmlite-new pkgs.qt5.qtsvg artiq-comtools.packages.x86_64-linux.artiq-comtools ]
++ (with pkgs.python3Packages; [ pyqtgraph pygit2 numpy dateutil scipy prettytable pyserial levenshtein h5py pyqt5 qasync tqdm lmdb jsonschema ]); ++ (with pkgs.python3Packages; [ pyqtgraph pygit2 numpy dateutil scipy prettytable pyserial levenshtein h5py pyqt5 qasync tqdm lmdb jsonschema ]);
dontWrapQtApps = true; dontWrapQtApps = true;
@ -157,10 +157,10 @@
"--set FONTCONFIG_FILE ${pkgs.fontconfig.out}/etc/fonts/fonts.conf" "--set FONTCONFIG_FILE ${pkgs.fontconfig.out}/etc/fonts/fonts.conf"
]; ];
# FIXME: automatically propagate lld_14 llvm_14 dependencies # FIXME: automatically propagate lld_15 llvm_15 dependencies
# cacert is required in the check stage only, as certificates are to be # cacert is required in the check stage only, as certificates are to be
# obtained from system elsewhere # obtained from system elsewhere
nativeCheckInputs = with pkgs; [ lld_14 llvm_14 lit outputcheck cacert ] ++ [ libartiq-support ]; nativeCheckInputs = with pkgs; [ lld_15 llvm_15 lit outputcheck cacert ] ++ [ libartiq-support ];
checkPhase = '' checkPhase = ''
python -m unittest discover -v artiq.test python -m unittest discover -v artiq.test
@ -239,9 +239,9 @@
nativeBuildInputs = [ nativeBuildInputs = [
(pkgs.python3.withPackages(ps: [ migen misoc (artiq.withExperimentalFeatures experimentalFeatures) ps.packaging ])) (pkgs.python3.withPackages(ps: [ migen misoc (artiq.withExperimentalFeatures experimentalFeatures) ps.packaging ]))
rust rust
pkgs.llvmPackages_14.clang-unwrapped pkgs.llvmPackages_15.clang-unwrapped
pkgs.llvm_14 pkgs.llvm_15
pkgs.lld_14 pkgs.lld_15
vivado vivado
rustPlatform.cargoSetupHook rustPlatform.cargoSetupHook
]; ];
@ -395,9 +395,9 @@
buildInputs = [ buildInputs = [
(pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc ps.paramiko microscope ps.packaging ] ++ artiq.propagatedBuildInputs )) (pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc ps.paramiko microscope ps.packaging ] ++ artiq.propagatedBuildInputs ))
rust rust
pkgs.llvmPackages_14.clang-unwrapped pkgs.llvmPackages_15.clang-unwrapped
pkgs.llvm_14 pkgs.llvm_15
pkgs.lld_14 pkgs.lld_15
pkgs.git pkgs.git
artiq-frontend-dev-wrappers artiq-frontend-dev-wrappers
# To manually run compiler tests: # To manually run compiler tests:
@ -425,9 +425,9 @@
buildInputs = [ buildInputs = [
(pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc artiq ps.packaging ])) (pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc artiq ps.packaging ]))
rust rust
pkgs.llvmPackages_14.clang-unwrapped pkgs.llvmPackages_15.clang-unwrapped
pkgs.llvm_14 pkgs.llvm_15
pkgs.lld_14 pkgs.lld_15
packages.x86_64-linux.vivado packages.x86_64-linux.vivado
packages.x86_64-linux.openocd-bscanspi packages.x86_64-linux.openocd-bscanspi
]; ];
@ -460,8 +460,8 @@
buildInputs = [ buildInputs = [
(pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ artiq ps.paramiko ])) (pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ artiq ps.paramiko ]))
pkgs.llvm_14 pkgs.llvm_15
pkgs.lld_14 pkgs.lld_15
pkgs.openssh pkgs.openssh
packages.x86_64-linux.openocd-bscanspi # for the bscanspi bitstreams packages.x86_64-linux.openocd-bscanspi # for the bscanspi bitstreams
]; ];