File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
csharp/autobuilder/Semmle.Autobuild.CSharp Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ namespace Semmle.Autobuild.CSharp
1111 /// </summary>
1212 public class CSharpAutobuildOptions : AutobuildOptionsShared
1313 {
14+ private const string buildModeEnvironmentVariable = "CODEQL_EXTRACTOR_CSHARP_BUILD_MODE" ;
1415 private const string extractorOptionPrefix = "CODEQL_EXTRACTOR_CSHARP_OPTION_" ;
1516
1617 public bool Buildless { get ; }
@@ -25,7 +26,8 @@ public class CSharpAutobuildOptions : AutobuildOptionsShared
2526 public CSharpAutobuildOptions ( IBuildActions actions ) : base ( actions )
2627 {
2728 Buildless = actions . GetEnvironmentVariable ( lgtmPrefix + "BUILDLESS" ) . AsBool ( "buildless" , false ) ||
28- actions . GetEnvironmentVariable ( extractorOptionPrefix + "BUILDLESS" ) . AsBool ( "buildless" , false ) ;
29+ actions . GetEnvironmentVariable ( extractorOptionPrefix + "BUILDLESS" ) . AsBool ( "buildless" , false ) ||
30+ actions . GetEnvironmentVariable ( buildModeEnvironmentVariable ) == "none" ;
2931 }
3032 }
3133
You can’t perform that action at this time.
0 commit comments