mirror of
https://github.com/Feliix42/mlir.nix.git
synced 2024-11-22 10:46:29 +00:00
Switch to NixOS 23.11 & LLVM 17
This commit is contained in:
parent
1ff775ea2f
commit
2e409d0b84
2 changed files with 14 additions and 14 deletions
|
@ -2,16 +2,16 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1704018918,
|
||||
"narHash": "sha256-erjg/HrpC9liEfm7oLqb8GXCqsxaFwIIPqCsknW5aFY=",
|
||||
"lastModified": 1704420045,
|
||||
"narHash": "sha256-C36QmoJd5tdQ5R9MC1jM7fBkZW9zBUqbUCsgwS6j4QU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2c9c58e98243930f8cb70387934daa4bc8b00373",
|
||||
"rev": "c1be43e8e837b8dbee2b3665a007e761680f0c3d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"ref": "nixos-23.05",
|
||||
"ref": "nixos-23.11",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
|
|
20
flake.nix
20
flake.nix
|
@ -2,7 +2,7 @@
|
|||
description = "Custom-Built MLIR Tools";
|
||||
|
||||
# Nixpkgs / NixOS version to use.
|
||||
inputs.nixpkgs.url = "nixpkgs/nixos-23.05";
|
||||
inputs.nixpkgs.url = "nixpkgs/nixos-23.11";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
|
@ -35,7 +35,7 @@
|
|||
# A Nixpkgs overlay.
|
||||
overlays.default = final: prev: {
|
||||
|
||||
mlir = with final; llvmPackages_16.stdenv.mkDerivation rec {
|
||||
mlir = with final; llvmPackages_17.stdenv.mkDerivation rec {
|
||||
name = "mlir-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
@ -53,9 +53,9 @@
|
|||
cmake
|
||||
ncurses
|
||||
zlib
|
||||
llvmPackages_16.llvm
|
||||
llvmPackages_16.clang
|
||||
llvmPackages_16.bintools
|
||||
llvmPackages_17.llvm
|
||||
llvmPackages_17.clang
|
||||
llvmPackages_17.bintools
|
||||
];
|
||||
|
||||
buildInputs = [ libxml2 ];
|
||||
|
@ -86,7 +86,7 @@
|
|||
"-DCMAKE_C_COMPILER=clang"
|
||||
"-DCMAKE_CXX_COMPILER=clang++"
|
||||
"-DLLVM_ENABLE_LLD=ON"
|
||||
#"-DLLVM_USE_LINKER=${llvmPackages_16.bintools}/bin/lld"
|
||||
#"-DLLVM_USE_LINKER=${llvmPackages_17.bintools}/bin/lld"
|
||||
# CCache can drastically speed up further rebuilds, try adding:
|
||||
#"-DLLVM_CCACHE_BUILD=ON"
|
||||
# libxml2 needs to be disabled because the LLVM build system ignores its .la
|
||||
|
@ -101,7 +101,7 @@
|
|||
# '';
|
||||
};
|
||||
|
||||
circt = with final; llvmPackages_16.stdenv.mkDerivation rec {
|
||||
circt = with final; llvmPackages_17.stdenv.mkDerivation rec {
|
||||
name = "circt-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
@ -119,9 +119,9 @@
|
|||
cmake
|
||||
#ncurses
|
||||
#zlib
|
||||
#llvmPackages_16.llvm
|
||||
llvmPackages_16.clang
|
||||
llvmPackages_16.bintools
|
||||
#llvmPackages_17.llvm
|
||||
llvmPackages_17.clang
|
||||
llvmPackages_17.bintools
|
||||
mlir
|
||||
lit
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue