Skip to content

Commit c28e2ee

Browse files
committed
fix(build): the resource compiler takes the toolchain's library path too
1 parent eeea6aa commit c28e2ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/build/ninja_backend.cppm‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ std::string emit_ninja_string(const BuildPlan& plan, std::string* placements,
15391539
}
15401540
const bool need_rc_rule = !plan.resourceUnits.empty();
15411541
if (need_rc_rule) {
1542-
append(std::format("rc = {}\n", escape_ninja_path(plan.rcPath)));
1542+
append(std::format("rc = {}{}\n", toolEnv, escape_ninja_path(plan.rcPath)));
15431543
std::string rcf;
15441544
for (auto const& f : plan.rcFlags) { rcf += ' '; rcf += shell_quote_arg(f); }
15451545
append(std::format("rcflags ={}\n", rcf));

0 commit comments

Comments
 (0)