C#: Exclude extractor arguments from compilation_args relation

This commit is contained in:
Tom Hvitved
2022-01-25 15:09:29 +01:00
parent 26d9848fca
commit d7a91fdbe6
2 changed files with 3 additions and 6 deletions

View File

@@ -86,9 +86,9 @@ namespace Semmle.Extraction.CSharp
var stopwatch = new Stopwatch();
stopwatch.Start();
Entities.Compilation.Settings = (Directory.GetCurrentDirectory(), args);
var options = Options.CreateWithEnvironment(args);
Entities.Compilation.Settings = (Directory.GetCurrentDirectory(), options.CompilerArguments.ToArray());
var options = Options.CreateWithEnvironment(Entities.Compilation.Settings.Args);
var fileLogger = new FileLogger(options.Verbosity, GetCSharpLogPath());
using var logger = options.Console
? new CombinedLogger(new ConsoleLogger(options.Verbosity), fileLogger)

View File

@@ -13,10 +13,7 @@ compilationArguments
| compilation | 5 | /r:System.Core.dll |
| compilation | 6 | /r:System.Runtime.dll |
| compilation | 7 | /r:System.Console.dll |
| compilation | 8 | --console |
| compilation | 9 | --verbosity |
| compilation | 10 | 2 |
| compilation | 11 | Program.cs |
| compilation | 8 | Program.cs |
compilationFiles
| compilation | 0 | Program.cs:0:0:0:0 | Program.cs |
compilationFolder