Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 911715 | Differences between
and this patch

Collapse All | Expand All

(-)qtwebengine-5.15.10_p20230623/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc (+8 lines)
Lines 119-124 Link Here
119
    // strictly necessary for regular one-shot actions, but it's easier to
119
    // strictly necessary for regular one-shot actions, but it's easier to
120
    // just always define unique_name.
120
    // just always define unique_name.
121
    std::string rspfile = custom_rule_name;
121
    std::string rspfile = custom_rule_name;
122
123
    //quick workaround if filename length > 255 - ".rsp", just cut the dirs starting from the end
124
    //please note ".$unique_name" is not used at the moment
125
    int pos = 0;
126
    std::string delimiter("_");
127
    while (rspfile.length() > 251 && (pos = rspfile.find_last_of(delimiter)) != std::string::npos)
128
        rspfile = rspfile.substr(0,pos);
129
122
    if (!target_->sources().empty())
130
    if (!target_->sources().empty())
123
      rspfile += ".$unique_name";
131
      rspfile += ".$unique_name";
124
    rspfile += ".rsp";
132
    rspfile += ".rsp";

Return to bug 911715