File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,14 @@ pub fn build(b: *std.Build) !void {
4848 // i really dislike macos
4949 exif_artifact .linkLibC ();
5050 exif_artifact .linkSystemLibrary ("intl" );
51+
52+ // macports
5153 exif_artifact .addLibraryPath (.{ .cwd_relative = "/opt/local/lib" });
5254 exif_artifact .addIncludePath (.{ .cwd_relative = "/opt/local/include" });
55+
56+ // homebrew
57+ exif_artifact .addLibraryPath (.{ .cwd_relative = "/opt/homebrew/lib" });
58+ exif_artifact .addIncludePath (.{ .cwd_relative = "/opt/homebrew/include" });
5359 }
5460
5561 const static_deps = &[_ ]* std.Build.Step.Compile {
@@ -66,7 +72,10 @@ pub fn build(b: *std.Build) !void {
6672 );
6773
6874 if (target .result .os .tag == .macos ) {
75+ // macports
6976 exe_tests .addLibraryPath (.{ .cwd_relative = "/opt/local/lib" });
77+ // homebrew
78+ exe_tests .addLibraryPath (.{ .cwd_relative = "/opt/homebrew/lib" });
7079 }
7180 const run_unit_tests = b .addRunArtifact (exe_tests );
7281
@@ -107,7 +116,10 @@ pub fn build(b: *std.Build) !void {
107116 }
108117
109118 if (target .result .os .tag == .macos ) {
110- single_exe .addLibraryPath (.{ .cwd_relative = "/opt/local/lib" });
119+ // macports
120+ exe_tests .addLibraryPath (.{ .cwd_relative = "/opt/local/lib" });
121+ // homebrew
122+ exe_tests .addLibraryPath (.{ .cwd_relative = "/opt/homebrew/lib" });
111123 }
112124
113125 b .installArtifact (single_exe );
You can’t perform that action at this time.
0 commit comments