Closed zhangkaizhao closed 2 years ago
The -Drelease-safe=[bool] optimizations on and safety on option is a Project-Specific option, e.g. using in the zig build command. For the zig build-exe command we should use -O ReleaseSafe, without this the default build mode Debug is used.
-Drelease-safe=[bool] optimizations on and safety on
zig build
zig build-exe
-O ReleaseSafe
That's much better!
The
-Drelease-safe=[bool] optimizations on and safety on
option is a Project-Specific option, e.g. using in thezig build
command. For thezig build-exe
command we should use-O ReleaseSafe
, without this the default build mode Debug is used.