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