DavidLeeds / hashmap

Templated type-safe hashmap implementation in C using open addressing and linear probing for collision resolution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to build in nodebug mode

CanYouGiveMeAName opened this issue · comments

I need to run this lib in sgx. But sgx do not support __assert_fail. So I need to make in no debug mode.

Please help. Thanks

You should be able to compile out assertions by defining NDEBUG at compile time. If you're using CMake, you could do something like target_compile_definitions(hashmap PRIVATE NDEBUG).