Commit 77a05df3 authored by jan.koester's avatar jan.koester
Browse files

bugfix

parent a4e31a8f
Loading
Loading
Loading
Loading
+1 −1
Changes for executor.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -326,7 +326,7 @@ int Executor::build_sequential(const std::string& target_in) {
    const Rule* rule = find_rule(target, stem);

    if (std::getenv("MP_DBG") && (target == "." || target == "built-in.a")) {
        std::cerr << "[DBG] target=[" << target << "] rule=" << (rule?"Y":"N")
        std::cerr << "[DBG pid=" << getpid() << "] target=[" << target << "] rule=" << (rule?"Y":"N")
                  << " recipes=" << (rule?rule->recipes.size():0)
                  << " phony=" << mf_.phony_targets.count(target) << std::endl;
        int idx = 0;
+3 −0
Changes for parser.cpp: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
#include <cstdio>
#include <cstring>
#include <cctype>
#include <unistd.h>

namespace fs = std::filesystem;
using namespace makeplus;
@@ -242,6 +243,8 @@ bool Parser::handle_conditional(const std::string& line_in, Makefile& mf) {
        }
        bool cond = eval_if_directive(line, mf);
        cond_stack_.push_back({cond, cond});
        if (std::getenv("MP_DBG") && line.find("need-sub-make),1") != std::string::npos)
            std::cerr << "[CD pid=" << getpid() << "] if [" << line.substr(0, 50) << "] cond=" << cond << " -> depth=" << cond_stack_.size() << "\n";
        return true;
    }