-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hugo McNally <[email protected]>
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright lowRISC contributors. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
{pkgs, ...}: | ||
pkgs.stdenv.mkDerivation rec { | ||
name = "llvm-cheriot"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "CHERIoT-Platform"; | ||
repo = "llvm-project"; | ||
rev = "432ef65c96c9f8be8b7802a8bfb9bcf3609b2b79"; | ||
sha256 = "sha256-ddLnG1olyRYxvKJ0zKEbThq/ZnxP68X32+1ws76WeV4="; | ||
}; | ||
sourceRoot = "${src.name}/llvm"; | ||
nativeBuildInputs = with pkgs; [cmake ninja lld python3]; | ||
cmakeFlags = [ | ||
"-DCMAKE_BUILD_TYPE=Release" | ||
"-DLLVM_ENABLE_ASSERTIONS=True" | ||
"-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;lld'" | ||
"-DLLVM_ENABLE_UNWIND_TABLES=NO" | ||
"-DLLVM_TARGETS_TO_BUILD=RISCV" | ||
"-DLLVM_DISTRIBUTION_COMPONENTS='clang;clangd;lld;llvm-objdump'" | ||
]; | ||
meta = { | ||
description = "The clang/LLVM compiler with CHERIoT support."; | ||
homepage = "https://cheriot.org/"; | ||
license = pkgs.lib.licenses.asl20-llvm; | ||
}; | ||
} |