Explorar o código

More cross-compile improvements.

Brucey %!s(int64=2) %!d(string=hai) anos
pai
achega
c43944c598
Modificáronse 2 ficheiros con 14 adicións e 4 borrados
  1. 3 3
      bmk.bmx
  2. 11 1
      bmk_ng.bmx

+ 3 - 3
bmk.bmx

@@ -19,15 +19,15 @@ args=ParseConfigArgs( AppArgs[2..], processor.BCCVersion() = "BlitzMax" )
 ' validate the platform configuration
 ' validate the platform configuration
 ValidatePlatformArchitecture()
 ValidatePlatformArchitecture()
 
 
-' pre-init gcc version cache
-processor.GCCVersion()
-
 ' preload the default options
 ' preload the default options
 processor.RunCommand("default_cc_opts", Null)
 processor.RunCommand("default_cc_opts", Null)
 
 
 ' load any global custom options (in BlitzMax/bin)
 ' load any global custom options (in BlitzMax/bin)
 LoadOptions
 LoadOptions
 
 
+' pre-init gcc version cache
+processor.GCCVersion()
+
 CreateDir BlitzMaxPath()+"/tmp"
 CreateDir BlitzMaxPath()+"/tmp"
 
 
 Select cmd.ToLower()
 Select cmd.ToLower()

+ 11 - 1
bmk_ng.bmx

@@ -564,6 +564,11 @@ Type TBMK
 			process.Close()
 			process.Close()
 		End If
 		End If
 
 
+		If Int(globals.Get("verbose")) Or opt_verbose
+			Print "Compiler : " + compiler
+			Print "Is clang : " + _clang
+		End If
+
 		' get version
 		' get version
 		If Platform() = "win32" Then
 		If Platform() = "win32" Then
 			process = CreateProcess(Option("path_to_gcc", MinGWBinPath() + "/gcc.exe") + " -dumpversion -dumpfullversion", HIDECONSOLE)
 			process = CreateProcess(Option("path_to_gcc", MinGWBinPath() + "/gcc.exe") + " -dumpversion -dumpfullversion", HIDECONSOLE)
@@ -606,7 +611,12 @@ Type TBMK
 				Return version
 				Return version
 			End If
 			End If
 		End If
 		End If
-		
+
+		If Int(globals.Get("verbose")) Or opt_verbose
+			Print "Version     : " + version
+			Print "Raw version : " + rawVersion
+		End If
+
 		Return compiler + " " + version
 		Return compiler + " " + version
 '?
 '?
 	End Method
 	End Method