Skip to content

Bug in std.build.LibExeObjStep.setTarget #4555

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

Closed
joachimschmidt557 opened this issue Feb 25, 2020 · 1 comment
Closed

Bug in std.build.LibExeObjStep.setTarget #4555

joachimschmidt557 opened this issue Feb 25, 2020 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior zig build system std.Build, the build runner, `zig build` subcommand, package management
Milestone

Comments

@joachimschmidt557
Copy link
Contributor

When compiling https://github.com/andrewrk/tetris/tree/27d0d0ec085e1ac0c9cae6092f807a318b15dd44 with the newest zig from master, this error occurs:

/home/joachim/src/zig/build/lib/zig/std/build.zig:1294:17: error: no member named 'arch' in struct 'std.target.Cross'
                .arch = target_arch,
                ^

The code assigns a value to .arch even though std.target.Target.Cross doesn't have this field.

        return self.setTheTarget(Target{
            .Cross = CrossTarget{
                .arch = target_arch,
                .os = target_os,
                .abi = target_abi,
                .cpu_features = target_arch.getBaselineCpuFeatures(),
            },
        });
@andrewrk
Copy link
Member

Thanks.

This is obsoleted with the merge of #4550 which landed in 7617610.

@andrewrk andrewrk added this to the 0.6.0 milestone Feb 29, 2020
@andrewrk andrewrk added bug Observed behavior contradicts documented or intended behavior zig build system std.Build, the build runner, `zig build` subcommand, package management labels Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior zig build system std.Build, the build runner, `zig build` subcommand, package management
Projects
None yet
Development

No branches or pull requests

2 participants