cartesi / machine-emulator

The off-chain implementation of the Cartesi Machine
GNU Lesser General Public License v3.0
58 stars 32 forks source link

chore: compile in release mode with debug info by default #250

Open edubart opened 1 week ago

edubart commented 1 week ago

This PR switch the default compilation from release with asserts enabled, to release with debug information but asserts disabled. This makes sure people will compile an efficient emulator with just make when packaging by default, not requiring the use of make relwithdebinfo=yes or make release=yes anymore when packaging.

The default make is choosen to contain debug information because some distros may want to strip and move the debug information into a second debug package (for example ArchLinux does this).

Change were mades in CI to always test with debug information, except for tagged releases.

IMPORTANT: After this PR, if you want to compile with asserts, please start compiling with make debug=yes, this is something only emulator developers care.