Skip to content

fix support for arm 32-bit #3

@silbinarywolf

Description

@silbinarywolf

The problem

Currently in Zig 0.13.0, building C libraries like SDL2 or OpenXR does not work correctly or as expected. When looking through the various error messages generated it seems that for some reason the C Macro __ARM_ARCH is not set to 7.

Related comment:

// TODO(jae): 2024-09-08
// This doesn't work for compiling C code like SDL2 or OpenXR due to "__ARM_ARCH" not being "7"
// or similar. I might be messing something up here but not sure.
// .{
// // arm-linux-androideabi
// .cpu_arch = .arm,
// .cpu_features_add = Target.arm.featureSet(&.{.v7a}),
// },

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions