Option ‣ optimize ᴾᴴᴾ - chung-leong/zigar GitHub Wiki

JavaScript | PHP


The optimization level used to compile Zig code.

Possible values:

  • Debug
  • ReleaseSafe
  • ReleaseSmall
  • ReleaseFast

Default:

ReleaseSmall when building for production, Debug otherwise.

Note:

Starting from version 0.15.1, the Zig compiler uses its own x86 backend instead of LLVM when optimize is Debug. Set use_llvm to true if you suspect that miscompilation is occurring.