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

Return to bug 911715