mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
C#: Exclude extractor arguments from compilation_args relation
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user