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"; |