From 24070da9c46d43eb374cda73caba85efd402475b Mon Sep 17 00:00:00 2001 From: arcnmx Date: Sat, 27 Jul 2019 13:45:14 -0700 Subject: [PATCH] llvmPackages_8.compiler-rt: bare-metal support Bare-metal targets require a few additional options to be set. --- pkgs/development/compilers/llvm/8/compiler-rt.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/llvm/8/compiler-rt.nix b/pkgs/development/compilers/llvm/8/compiler-rt.nix index a8bbb1f719bf..055e601109fb 100644 --- a/pkgs/development/compilers/llvm/8/compiler-rt.nix +++ b/pkgs/development/compilers/llvm/8/compiler-rt.nix @@ -27,6 +27,9 @@ stdenv.mkDerivation rec { "-DCOMPILER_RT_BUILD_XRAY=OFF" "-DCOMPILER_RT_BUILD_LIBFUZZER=OFF" "-DCOMPILER_RT_BUILD_PROFILE=OFF" + ] ++ stdenv.lib.optionals (stdenv.hostPlatform.parsed.kernel.name == "none") [ + "-DCOMPILER_RT_BAREMETAL_BUILD=ON" + "-DCOMPILER_RT_OS_DIR=baremetal" ]; outputs = [ "out" "dev" ];