Explorar o código

Added option to disable auto superstrict. (#131)

Brucey hai 1 ano
pai
achega
58ac8eb0f6
Modificáronse 4 ficheiros con 14 adicións e 1 borrados
  1. 4 0
      CHANGELOG
  2. 3 0
      bmk_config.bmx
  3. 6 0
      bmk_make.bmx
  4. 1 1
      version.bmx

+ 4 - 0
CHANGELOG

@@ -1,3 +1,7 @@
+## [3.57] - 2024-01-03
+### Added
+ - Added -nas option to disable auto superstrict.
+
 ## [3.56] - 2023-09-30
 ## [3.56] - 2023-09-30
 ### Fixed
 ### Fixed
  - Bootstrap script progress echoes require quotes.
  - Bootstrap script progress echoes require quotes.

+ 3 - 0
bmk_config.bmx

@@ -62,6 +62,7 @@ Global opt_userdefs:String
 Global opt_gprof:Int
 Global opt_gprof:Int
 Global opt_hi:Int
 Global opt_hi:Int
 Global opt_coverage:Int
 Global opt_coverage:Int
+Global opt_no_auto_superstrict:Int
 
 
 Global opt_dumpbuild
 Global opt_dumpbuild
 
 
@@ -268,6 +269,8 @@ Function ParseConfigArgs$[]( args$[], legacyMax:Int = False )
 			opt_hi = True
 			opt_hi = True
 		Case "cov"
 		Case "cov"
 			opt_coverage = True
 			opt_coverage = True
+		Case "nas"
+			opt_no_auto_superstrict = True
 		Default
 		Default
 			CmdError "Invalid option '" + argv + "'"
 			CmdError "Invalid option '" + argv + "'"
 		End Select
 		End Select

+ 6 - 0
bmk_make.bmx

@@ -427,6 +427,9 @@ Type TBuildManager Extends TCallback
 			If opt_coverage Then
 			If opt_coverage Then
 				sb.Append(" -cov")
 				sb.Append(" -cov")
 			End If
 			End If
+			If opt_no_auto_superstrict Then
+				sb.Append(" -nas")
+			End If
 		End If
 		End If
 
 
 		source.cc_opts :+ cc_opts
 		source.cc_opts :+ cc_opts
@@ -1375,6 +1378,9 @@ Type TBuildManager Extends TCallback
 				If opt_coverage Then
 				If opt_coverage Then
 					sb.Append(" -cov")
 					sb.Append(" -cov")
 				End If
 				End If
+				If opt_no_auto_superstrict Then
+					sb.Append(" -nas")
+				End If
 			End If
 			End If
 	
 	
 			source.bcc_opts = sb.ToString()
 			source.bcc_opts = sb.ToString()

+ 1 - 1
version.bmx

@@ -1,3 +1,3 @@
 SuperStrict
 SuperStrict
 
 
-Const BMK_VERSION:String = "3.56"
+Const BMK_VERSION:String = "3.57"