Commit de74be19 authored by jan.koester's avatar jan.koester
Browse files

mssing vars

parent a99a674d
Loading
Loading
Loading
Loading
+3 −0
Changes for parser.cpp: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -843,6 +843,9 @@ bool Parser::try_parse_rule(const std::string& line, Makefile& mf, Rule*& curren
        }
        std::string tv_name, tv_op, tv_value;
        if (parse_target_var(tv_rhs, tv_name, tv_op, tv_value)) {
            // The variable name may itself be computed (e.g.
            // 'asflags-$(CONFIG_X86_64) += -m32'); expand it like GNU make.
            tv_name = expand(tv_name, mf);
            if (tv_export) mf.exported.insert(tv_name);
            std::string val = (tv_op == ":=") ? expand(tv_value, mf) : tv_value;
            for (const auto& t : targets) {