Skip to content

Samples build.zig cannot be directly used #597

@Pyrolistical

Description

@Pyrolistical

If you try to build a sample directly, it errors:

$ cd samples\minimal_d3d12
$ zig build
...\samples\minimal_d3d12\build.zig:4:25: error: import of file outside module path: '../../build.zig'
const Options = @import("../../build.zig").Options;
                        ^~~~~~~~~~~~~~~~~

I think we can refactor to directly pass in target and optimize but duplicate all other options as b.option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions