#build optimize modes

1 messages · Page 1 of 1 (latest)

true torrent
#

is there any specification on the build optimize modes?

i looked at https://ziglang.org/documentation/0.15.2/#Build-Mode and the 0.15.2 stdlib defintion and neither locations seem to have any information about the safety checks, etc.
for example something like UBsan and ASan. i'd imagine they are just debug only but i can't seem to find any confirmation for the same. and then there's ReleaseSafe, without the specification i can't tell what the "safety checks" really are.

mighty shadow
#

are you asking in relation to compiling C?
regardless all safety checks in debug will be in release safe too.

mighty shadow
opal ether
#

My interpretation was what are the safety checks zig provides, which ofc it cannot do for c

mighty shadow
true torrent
mighty shadow
#

i dont think the specifics of what it enables are documented, you can look around the compiler source if you want