Loading parser.cpp +7 −2 Changes for parser.cpp: 7 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -385,9 +385,14 @@ void Parser::process_line(const std::string& line, Makefile& mf, Rule*& current_ return; } // Handle conditionals first (even in inactive branches) // Handle conditionals first (even in inactive branches). // A conditional directive is transparent to the recipe context: GNU make // allows ifeq/ifneq/else/endif to wrap recipe lines belonging to the // current rule (e.g. Kbuild's "defconfig:" recipe). Do NOT clear // current_rule here, otherwise tab-prefixed recipe lines following the // conditional would be dropped. Any non-recipe statement inside the branch // still resets current_rule via its own handling below. if (handle_conditional(trimmed, mf)) { current_rule = nullptr; return; } Loading Loading
parser.cpp +7 −2 Changes for parser.cpp: 7 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -385,9 +385,14 @@ void Parser::process_line(const std::string& line, Makefile& mf, Rule*& current_ return; } // Handle conditionals first (even in inactive branches) // Handle conditionals first (even in inactive branches). // A conditional directive is transparent to the recipe context: GNU make // allows ifeq/ifneq/else/endif to wrap recipe lines belonging to the // current rule (e.g. Kbuild's "defconfig:" recipe). Do NOT clear // current_rule here, otherwise tab-prefixed recipe lines following the // conditional would be dropped. Any non-recipe statement inside the branch // still resets current_rule via its own handling below. if (handle_conditional(trimmed, mf)) { current_rule = nullptr; return; } Loading