You can specify a compiler option to omit debugging and symbol information from the executable without sacrificing its operability.

Options to specify:

Linux* and macOS*: -Wl, --strip-all
Windows*: None

Advantages of this method:

This method noticeably reduces the size of the binary.

Disadvantages of this method:

It may be very difficult to debug a stripped application.

Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.