--- qtwebengine-5.15.10_p20230623/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc 2021-01-20 02:18:44.000000000 +0100 +++ qtwebengine-5.15.10_p20230623/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc 2023-08-08 15:51:47.413496000 +0200 @@ -119,6 +119,14 @@ // strictly necessary for regular one-shot actions, but it's easier to // just always define unique_name. std::string rspfile = custom_rule_name; + + //quick workaround if filename length > 255 - ".rsp", just cut the dirs starting from the end + //please note ".$unique_name" is not used at the moment + int pos = 0; + std::string delimiter("_"); + while (rspfile.length() > 251 && (pos = rspfile.find_last_of(delimiter)) != std::string::npos) + rspfile = rspfile.substr(0,pos); + if (!target_->sources().empty()) rspfile += ".$unique_name"; rspfile += ".rsp";