From 1bd1d810cd2a9607ea9795278055ccf6846ab442 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 15 Oct 2018 10:18:20 +0200 Subject: Fix platform error message when using invalid platform --- src/Conf.cpp | 2 +- src/main.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Conf.cpp b/src/Conf.cpp index 0307bc0..a204f13 100644 --- a/src/Conf.cpp +++ b/src/Conf.cpp @@ -684,7 +684,7 @@ namespace sibs result += " or "; else if(i > 0) result += ", "; - result += it.second; + result += string(it.first.data, it.first.size); ++i; } return result; diff --git a/src/main.cpp b/src/main.cpp index 952497a..4bf840a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -96,6 +96,8 @@ using namespace std::chrono; // TODO: Create a script that downloads every library in the package list (packages.json) and build each project for every new release of sibs // to verify we don't break anything. +// TODO: Generate compile_commands.json even if compilation fails. This is needed to properly show errors in IDE. + #if OS_FAMILY == OS_FAMILY_POSIX #define fout std::cout #define ferr std::cerr @@ -1436,4 +1438,4 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi { return wmain(__argc, (const _tinydir_char_t**)__wargv); } -#endif \ No newline at end of file +#endif -- cgit v1.2.3