diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-15 10:18:20 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | 1bd1d810cd2a9607ea9795278055ccf6846ab442 (patch) | |
tree | ec2455a844b7c2c7475a2257933efc890744271a /src | |
parent | d00a3a0371bcbe008525dff0456bb88b6977dd82 (diff) |
Fix platform error message when using invalid platform
Diffstat (limited to 'src')
-rw-r--r-- | src/Conf.cpp | 2 | ||||
-rw-r--r-- | 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 |