Skip to content
This repository was archived by the owner on Feb 12, 2023. It is now read-only.

Suppress warning for source files that fall under intermediate output path #184

Merged
merged 1 commit into from
Dec 12, 2017

Conversation

AArnott
Copy link
Contributor

@AArnott AArnott commented Dec 12, 2017

GitLink warns when source files aren't discoverable in the git repo since source server support will fail when debugging into that source file. But when these source files are generated by the build, the warnings are not actionable and the developer should already know these won't be available to debug into. The eventual fix for this is SourceLink which can embed such source files into the PDB. So for now, this PR just suppresses the useless and noisy warnings.

};
bool success = Linker.Link(PdbFile.GetMetadata("FullPath"), options);

return success && !Log.HasLoggedErrors;
}

private static string AddTrailingSlash(string path)
{
return path.EndsWith(Path.DirectorySeparatorChar.ToString())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically we could optimize this method by caching the ToString call, but I guess that is premature optimization.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also could just do a last char comparison and avoid ToString altogether. But ya, I was going for simple here since we do it just once.

@GeertvanHorrik GeertvanHorrik merged commit bfc7543 into GitTools:develop Dec 12, 2017
@AArnott AArnott deleted the NoWarnOnIntermediateSource branch December 12, 2017 15:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants