Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build problem only use mach-core: update to Zig 2024.5.0-mach, hit build problem #1216

Closed
limitee opened this issue Jun 13, 2024 · 1 comment
Labels
question Further information is requested

Comments

@limitee
Copy link

limitee commented Jun 13, 2024

when update to Zig 2024.5.0-mach, I hit something strange: When I change something in a sub module, run zig build, will do nothing. This not happens when use 0.12.

const ui_module = std.Build.Module.Import{
        .name = "ui",
        .module = b.createModule(.{
            .root_source_file = .{ .src_path = .{ .owner = b, .sub_path = "src/context/mod.zig" } },
        }),
    };

const crypto = try mach.CoreApp.init(b, mach_dep.builder, .{
        .name = "crypto",
        .src = "src/app.zig",
        .target = target,
        .optimize = optimize,
        .deps = &[_]std.Build.Module.Import{ zmath_module, zigimg_module, zul_module, service_module },
    });

crypto.module.addImport("ui", ui_module.module);

change something in ui module's source code. then run zig build, nothing happens.
when in 0.12, It will rebuild the poject.
And If not use the mach core, It will rebuild the project, too.

@limitee limitee added bug Something isn't working needs-triage Issues that need triaging labels Jun 13, 2024
@slimsag
Copy link
Member

slimsag commented Jun 13, 2024

@slimsag slimsag added question Further information is requested and removed bug Something isn't working needs-triage Issues that need triaging labels Jun 13, 2024
@limitee limitee closed this as completed Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants