From 221cae2ba0c487c7b7df1219be5aaaf3888c0d82 Mon Sep 17 00:00:00 2001 From: Jared Ramirez Date: Fri, 25 Sep 2020 16:08:59 -0700 Subject: [PATCH] Add lld to Nix for faster builds; Remove redundant import --- compiler/builtins/bitcode/src/lib.rs | 2 -- shell.nix | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/builtins/bitcode/src/lib.rs b/compiler/builtins/bitcode/src/lib.rs index ab48b7bb67e..3bcf34121ed 100644 --- a/compiler/builtins/bitcode/src/lib.rs +++ b/compiler/builtins/bitcode/src/lib.rs @@ -3,8 +3,6 @@ #![crate_type = "lib"] #![no_std] -use libm; - /// TODO replace this with a normal Inkwell build_cast call - this was just /// used as a proof of concept for getting bitcode importing working! #[no_mangle] diff --git a/shell.nix b/shell.nix index 0e7fd261884..cd14b279f15 100644 --- a/shell.nix +++ b/shell.nix @@ -35,6 +35,8 @@ let pkgs.libffi pkgs.libxml2 pkgs.zlib + # faster builds - see /~https://github.com/rtfeldman/roc/blob/trunk/BUILDING_FROM_SOURCE.md#use-lld-for-the-linker + pkgs.lld_9 ]; in pkgs.mkShell { buildInputs = inputs ++ darwin-frameworks;