diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e2fd11..8a6e036 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,5 +7,9 @@ project(tVM set(CMAKE_CXX_STANDARD 14) +if (WIN32) + set(CMAKE_CXX_FLAGS "/EHsc") +endif() + add_subdirectory(tvm) add_subdirectory(tvm-run) diff --git a/tvm-run/main.cpp b/tvm-run/main.cpp index e37e0b5..7619023 100644 --- a/tvm-run/main.cpp +++ b/tvm-run/main.cpp @@ -5,6 +5,11 @@ #include "tvm/ExecutionContext.hpp" #include "tvm/BytecodeParser.hpp" +#ifdef _MSC_VER +#define strncasecmp _strnicmp +#define strcasecmp _stricmp +#endif + /// tvm-run's usage string. Printed when run with -help. static const char* usage = "Usage: tvm-run [