Browse Source

More cross-compile improvements.

Brucey 2 years ago
parent
commit
c43944c598
2 changed files with 14 additions and 4 deletions
  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
 ValidatePlatformArchitecture()
 
-' pre-init gcc version cache
-processor.GCCVersion()
-
 ' preload the default options
 processor.RunCommand("default_cc_opts", Null)
 
 ' load any global custom options (in BlitzMax/bin)
 LoadOptions
 
+' pre-init gcc version cache
+processor.GCCVersion()
+
 CreateDir BlitzMaxPath()+"/tmp"
 
 Select cmd.ToLower()

+ 11 - 1
bmk_ng.bmx

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