From 179c09cf6929ab2278a137832ca609e5c51c1f0b Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Tue, 30 Apr 2024 11:09:25 +0100 Subject: llvm,mlir: Fix the incorrect MLIR_INSTALL_PACKAGE_DIR config --- pkgs/development/compilers/llvm/common/mlir/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/compilers/llvm/common/mlir/default.nix b/pkgs/development/compilers/llvm/common/mlir/default.nix index 7a79ac30ba864..044e5c673108b 100644 --- a/pkgs/development/compilers/llvm/common/mlir/default.nix +++ b/pkgs/development/compilers/llvm/common/mlir/default.nix @@ -1,6 +1,9 @@ -{ lib, stdenv, llvm_meta +{ lib +, stdenv +, llvm_meta , buildLlvmTools -, monorepoSrc, runCommand +, monorepoSrc +, runCommand , cmake , ninja , libxml2 @@ -14,7 +17,7 @@ stdenv.mkDerivation rec { inherit version doCheck; # Blank llvm dir just so relative path works - src = runCommand "${pname}-src-${version}" {} '' + src = runCommand "${pname}-src-${version}" { } '' mkdir -p "$out" cp -r ${monorepoSrc}/cmake "$out" cp -r ${monorepoSrc}/mlir "$out" @@ -45,7 +48,7 @@ stdenv.mkDerivation rec { "-DLLVM_INSTALL_TOOLCHAIN_ONLY=OFF" "-DMLIR_TOOLS_INSTALL_DIR=${placeholder "out"}/bin/" "-DLLVM_ENABLE_IDE=OFF" - "-DLLD_INSTALL_PACKAGE_DIR=${placeholder "out"}/lib/cmake/mlir" + "-DMLIR_INSTALL_PACKAGE_DIR=${placeholder "out"}/lib/cmake/mlir" "-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}" "-DLLVM_ENABLE_FFI=ON" "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}" -- cgit 1.4.1