This commit is contained in:
Siarhei Fedartsou 2022-09-09 14:34:22 +02:00
parent e5550688fa
commit 99b90125d7
2 changed files with 8 additions and 9 deletions

View File

@ -17,8 +17,7 @@ add_nodejs_module(node_osrm node_osrm.cpp)
set_target_properties(node_osrm PROPERTIES CXX_STANDARD 14)
# TODO: we disable clang-tidy for this target, because it causes errors in third-party NodeJs related headers
set_target_properties(node_osrm PROPERTIES CXX_CLANG_TIDY "")
# TODO: we turn off "warnings as errors" for this target, because it causes errors in third-party NodeJs related headers
# target_no_warning(node_osrm error)
# TODO: we turn off some warnings for this target, because it causes errors in third-party NodeJs related headers
target_no_warning(node_osrm suggest-destructor-override)
target_no_warning(node_osrm suggest-override)

View File

@ -7,13 +7,13 @@
// This is needed because libstdc++ itself uses this API - its not
// just an issue of your code using it, ughhh
// // Note: only necessary on Linux
// #ifdef __linux__
// #define _ENABLE_GLIBC_WORKAROUND
// #warning building with workaround
// #else
// #warning not building with workaround
// #endif
// Note: only necessary on Linux
#ifdef __linux__
#define _ENABLE_GLIBC_WORKAROUND
#warning building with workaround
#else
#warning not building with workaround
#endif
#ifdef _ENABLE_GLIBC_WORKAROUND
namespace std