setup.py: fix compilation with MSVC

This commit is contained in:
Mario Fink 2021-06-10 19:17:25 +02:00
parent 1e2b344104
commit dc23b1e753
2 changed files with 3 additions and 3 deletions

View File

@ -11,8 +11,8 @@ extensions = Extension(
include_dirs=["lib","3rdparty/pugixml"],
language='c++',
#extra_compile_args=['-std=c++17','-Wno-unused-variable'],
extra_compile_args=['-std=c++17'],
extra_link_args=['-std=c++17'],
extra_compile_args=['-std=c++17','/EHsc','/std:c++17'],
extra_link_args=['-std=c++17','/EHsc','/std:c++17'],
)
os.system("git tag > gittags.log")

View File

@ -917,7 +917,7 @@ void tdm_termite::check_filename_path(const char* filename)
if ( !std::filesystem::is_directory(pt) )
{
throw std::runtime_error(std::string("directory does not exist: ") + pt.c_str() );
throw std::runtime_error( std::string("directory does not exist: ") + pt.u8string() );
}
}