summaryrefslogtreecommitdiffhomepage
path: root/ymake.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ymake.cpp')
-rw-r--r--ymake.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ymake.cpp b/ymake.cpp
index 4747555..a3eec6a 100644
--- a/ymake.cpp
+++ b/ymake.cpp
@@ -2,6 +2,7 @@
#include "file.h"
#include "Builder.h"
+#include "MakefileReader.h"
#include <algorithm>
#include <cstdlib>
@@ -41,8 +42,7 @@ namespace {
int ymake(int argc, char* argv[])
{
try {
- pt::ptree ptree;
- pt::read_xml(YMakefile, ptree, pt::xml_parser::no_comments | pt::xml_parser::trim_whitespace);
+ pt::ptree ptree{MakefileReader{}.read(".")};
std::string action{"default"};