Merge topic 'ninja-cmcldeps-first-line'
11a6dac Ninja: don't suppress warning about compiler options
This commit is contained in:
commit
028b7636b8
@ -238,7 +238,9 @@ int main() {
|
||||
// needed to suppress filename output of msvc tools
|
||||
std::string srcfilename;
|
||||
std::string::size_type pos = srcfile.rfind("\\");
|
||||
if (pos != std::string::npos) {
|
||||
if (pos == std::string::npos) {
|
||||
srcfilename = srcfile;
|
||||
} else {
|
||||
srcfilename = srcfile.substr(pos + 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user