Compare commits

..

2 Commits

View File

@@ -8,6 +8,8 @@
#include <algorithm> #include <algorithm>
#include <string.h> #include <string.h>
#define VERSION "2.0.1"
std::string libs = ""; std::string libs = "";
std::string cppflags = ""; std::string cppflags = "";
std::string executable = "out"; std::string executable = "out";
@@ -379,7 +381,7 @@ void process_includes(int index, std::string& file, bool is_cpp = false)
void process_cpp(std::string& file) void process_cpp(std::string& file)
{ {
std::string absolute_path = std::filesystem::weakly_canonical(file); std::string absolute_path = std::filesystem::weakly_canonical(file).string();
//std::cout << absolute_path << std::endl; //std::cout << absolute_path << std::endl;
int index = add_cpp(absolute_path); int index = add_cpp(absolute_path);
@@ -428,6 +430,8 @@ void processCommand(std::string arg) {
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
std::cout << "Lagueirto v" << VERSION << std::endl;
std::string configuration_to_use; std::string configuration_to_use;
for (int i = 1; i < argc; ++i) for (int i = 1; i < argc; ++i)
{ {