I cannot find a way to detect optimizeMode in 0.16
I think you are a victim of zig reusing the name builtin.
std.builtin.Mode is the type definition, but @import("builtin").mode is the mode that was passed to the compiler.
The former builtin is stuff shared between the compiler and standard, eg Type used both for reflection and internally by the compiler.
The latter is metadata about the compilation.
Either/both could do with a rename
7 Likes
You are absolutely right. thank you so much.