frawk: disable llvm support
This commit is contained in:
parent
410db85f3b
commit
715c5298f5
@ -5,10 +5,16 @@
|
|||||||
libxml2,
|
libxml2,
|
||||||
ncurses,
|
ncurses,
|
||||||
zlib,
|
zlib,
|
||||||
features ? [ "default" ],
|
features ? [
|
||||||
llvmPackages_12,
|
"use_jemalloc"
|
||||||
|
"allow_avx2"
|
||||||
|
"unstable"
|
||||||
|
],
|
||||||
}:
|
}:
|
||||||
|
# Don't allow LLVM support until https://github.com/ezrosent/frawk/issues/115 is resolved.
|
||||||
|
assert lib.assertMsg (
|
||||||
|
!(lib.elem "default" features || lib.elem "llvm_backend" features)
|
||||||
|
) "LLVM support has been dropped due to LLVM 12 EOL.";
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "frawk";
|
pname = "frawk";
|
||||||
version = "0.4.8";
|
version = "0.4.8";
|
||||||
@ -30,11 +36,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
buildNoDefaultFeatures = true;
|
buildNoDefaultFeatures = true;
|
||||||
buildFeatures = features;
|
buildFeatures = features;
|
||||||
|
|
||||||
preBuild =
|
preBuild = lib.optionalString (lib.elem "default" features || lib.elem "unstable" features) ''
|
||||||
lib.optionalString (lib.elem "default" features || lib.elem "llvm_backend" features) ''
|
|
||||||
export LLVM_SYS_120_PREFIX=${llvmPackages_12.llvm.dev}
|
|
||||||
''
|
|
||||||
+ lib.optionalString (lib.elem "default" features || lib.elem "unstable" features) ''
|
|
||||||
export RUSTC_BOOTSTRAP=1
|
export RUSTC_BOOTSTRAP=1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user