libmach: respect build target / mode flags
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
741b4d9eb7
commit
fbc9cee4cc
1 changed files with 2 additions and 0 deletions
|
|
@ -125,6 +125,8 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
|
|
||||||
// compiles the `libmach` shared library
|
// compiles the `libmach` shared library
|
||||||
const lib = b.addSharedLibrary("mach", "src/platform/libmach.zig", .unversioned);
|
const lib = b.addSharedLibrary("mach", "src/platform/libmach.zig", .unversioned);
|
||||||
|
lib.setTarget(target);
|
||||||
|
lib.setBuildMode(mode);
|
||||||
lib.main_pkg_path = "src/";
|
lib.main_pkg_path = "src/";
|
||||||
const app_pkg = std.build.Pkg{
|
const app_pkg = std.build.Pkg{
|
||||||
.name = "app",
|
.name = "app",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue