From e3a58526ce11a42b96a955369033cb27edd77889 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 1 Oct 2023 17:42:18 -0700 Subject: [PATCH] fix dynamic build --- build.zig | 2 +- nix/devshell.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index d2ed2d699..a74912a65 100644 --- a/build.zig +++ b/build.zig @@ -759,7 +759,7 @@ fn addDeps( // Dynamic link if (!static) { - // step.addIncludePath(.{ .path = freetype.include_path_self }); + step.addIncludePath(freetype_dep.path("")); step.linkSystemLibrary2("bzip2", dynamic_link_opts); step.linkSystemLibrary2("freetype2", dynamic_link_opts); step.linkSystemLibrary2("harfbuzz", dynamic_link_opts); diff --git a/nix/devshell.nix b/nix/devshell.nix index 5b1c18e7d..78d8de6fb 100644 --- a/nix/devshell.nix +++ b/nix/devshell.nix @@ -51,6 +51,7 @@ let freetype harfbuzz libpng + pixman zlib libX11