This commit is contained in:
vaclavt 2022-01-16 20:35:17 +01:00
commit 453c39d51f
2 changed files with 6 additions and 2 deletions

View File

@ -14,7 +14,7 @@ set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
# otool -lV build/ml | grep stack
# set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
include_directories(/usr/local/opt/openssl/include ${CMAKE_SOURCE_DIR}/clib ${CMAKE_SOURCE_DIR})

6
ml.h
View File

@ -6,7 +6,11 @@
#include <sstream>
#include <exception>
const std::string VERSION = "ml 0.4 (" __DATE__ " " __TIME__ ")";
#ifdef NDEBUG
const std::string VERSION = "ml 0.4 (" __DATE__ " " __TIME__ "), Release";
#else
const std::string VERSION = "ml 0.4 (" __DATE__ " " __TIME__ "), Debug";
#endif
const std::string STDLIB_LOADER =
R"(