gcc: add langJit option for gcclangjit

This option can be used to set the “jit” language which enable the
libgccjit functionality. Also adds a “libgccjit” attr which is gcc
built with just jit enabled.
This commit is contained in:
Matthew Bauer
2020-05-06 23:12:17 -05:00
parent 9c4fbf9cb1
commit fe1955588a
8 changed files with 30 additions and 10 deletions
+3 -1
View File
@@ -4,6 +4,7 @@
, langObjCpp ? stdenv.targetPlatform.isDarwin
, langGo ? false
, profiledCompiler ? false
, langJit ? false
, staticCompiler ? false
, enableShared ? true
, enableLTO ? true
@@ -90,7 +91,7 @@ stdenv.mkDerivation ({
inherit patches;
outputs = [ "out" "lib" "man" "info" ];
outputs = [ "out" "man" "info" ] ++ stdenv.lib.optional (!langJit) "lib";
setOutputFlags = false;
NIX_NO_SELF_RPATH = true;
@@ -206,6 +207,7 @@ stdenv.mkDerivation ({
langGo
langObjC
langObjCpp
langJit
;
} ++ optional (targetPlatform.isAarch64) "--enable-fix-cortex-a53-843419"
++ optional targetPlatform.isNetBSD "--disable-libcilkrts"