nix: add option to disable simd in libghostty-vt package
parent
0a492fdb33
commit
1bd7c19dac
|
|
@ -770,12 +770,24 @@ jobs:
|
||||||
- name: Check to see if the library looks sane
|
- name: Check to see if the library looks sane
|
||||||
run: nm result/lib/libghostty-vt.so.0.1.0 2>&1 | grep -q 'ghostty_terminal_new'
|
run: nm result/lib/libghostty-vt.so.0.1.0 2>&1 | grep -q 'ghostty_terminal_new'
|
||||||
|
|
||||||
|
- name: Test ReleaseFast (no SIMD) build of libghostty-vt
|
||||||
|
run: nix build .#libghostty-vt-releasefast-no-simd
|
||||||
|
|
||||||
|
- name: Check to see if the library looks sane
|
||||||
|
run: nm result/lib/libghostty-vt.so.0.1.0 2>&1 | grep -q 'ghostty_terminal_new'
|
||||||
|
|
||||||
- name: Test Debug build of libghostty-vt
|
- name: Test Debug build of libghostty-vt
|
||||||
run: nix build .#libghostty-vt-debug
|
run: nix build .#libghostty-vt-debug
|
||||||
|
|
||||||
- name: Check to see if the library looks sane
|
- name: Check to see if the library looks sane
|
||||||
run: nm result/lib/libghostty-vt.so.0.1.0 2>&1 | grep -q 'ghostty_terminal_new'
|
run: nm result/lib/libghostty-vt.so.0.1.0 2>&1 | grep -q 'ghostty_terminal_new'
|
||||||
|
|
||||||
|
- name: Test Debug (no SIMD) build of libghostty-vt
|
||||||
|
run: nix build .#libghostty-vt-debug-no-simd
|
||||||
|
|
||||||
|
- name: Check to see if the library looks sane
|
||||||
|
run: nm result/lib/libghostty-vt.so.0.1.0 2>&1 | grep -q 'ghostty_terminal_new'
|
||||||
|
|
||||||
build-dist:
|
build-dist:
|
||||||
runs-on: namespace-profile-ghostty-sm
|
runs-on: namespace-profile-ghostty-sm
|
||||||
needs: test
|
needs: test
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,9 @@
|
||||||
libghostty-vt-debug = pkgs.callPackage ./nix/libghostty-vt.nix (mkPkgArgs "Debug");
|
libghostty-vt-debug = pkgs.callPackage ./nix/libghostty-vt.nix (mkPkgArgs "Debug");
|
||||||
libghostty-vt-releasesafe = pkgs.callPackage ./nix/libghostty-vt.nix (mkPkgArgs "ReleaseSafe");
|
libghostty-vt-releasesafe = pkgs.callPackage ./nix/libghostty-vt.nix (mkPkgArgs "ReleaseSafe");
|
||||||
libghostty-vt-releasefast = pkgs.callPackage ./nix/libghostty-vt.nix (mkPkgArgs "ReleaseFast");
|
libghostty-vt-releasefast = pkgs.callPackage ./nix/libghostty-vt.nix (mkPkgArgs "ReleaseFast");
|
||||||
|
libghostty-vt-debug-no-simd = pkgs.callPackage ./nix/libghostty-vt.nix ((mkPkgArgs "Debug") // {simd = false;});
|
||||||
|
libghostty-vt-releasesafe-no-simd = pkgs.callPackage ./nix/libghostty-vt.nix ((mkPkgArgs "ReleaseSafe") // {simd = false;});
|
||||||
|
libghostty-vt-releasefast-no-simd = pkgs.callPackage ./nix/libghostty-vt.nix ((mkPkgArgs "ReleaseFast") // {simd = false;});
|
||||||
|
|
||||||
libghostty-vt = libghostty-vt-releasefast;
|
libghostty-vt = libghostty-vt-releasefast;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
zig_0_15,
|
zig_0_15,
|
||||||
revision ? "dirty",
|
revision ? "dirty",
|
||||||
optimize ? "Debug",
|
optimize ? "Debug",
|
||||||
|
simd ? true,
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "ghostty";
|
pname = "ghostty";
|
||||||
|
|
@ -55,6 +56,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
"-Doptimize=${optimize}"
|
"-Doptimize=${optimize}"
|
||||||
"-Dapp-runtime=none"
|
"-Dapp-runtime=none"
|
||||||
"-Demit-lib-vt=true"
|
"-Demit-lib-vt=true"
|
||||||
|
"-Dsimd=${lib.boolToString simd}"
|
||||||
];
|
];
|
||||||
|
|
||||||
outputs = [
|
outputs = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue