mnm-sys / tezdhar

A fast and unbeatable chess engine written in C
GNU General Public License v3.0
3 stars 1 forks source link

Add conditional instrumentation flags [-fsanitize=*] in Makefile #47

Open mnm-sys opened 1 year ago

mnm-sys commented 1 year ago

https://github.com/google/sanitizers

Please note that these flags work with only some compilers like clang and gcc, and are not supported on other compilers.

So, use conditional compilation for these instrumentation flags.

https://www.gnu.org/software/make/manual/html_node/Conditional-Example.html