aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-21 19:49:50 +0000
committerlloyd <[email protected]>2010-06-21 19:49:50 +0000
commit6d9ea2cb9a2e7f4fdbb7de0e19446cdd5264be3d (patch)
tree95883656ebfeea6145315c64385adda2b97a76c2
parent3f1f7c92953dea2e51e3a31049e2a3a273d76d18 (diff)
When configure is printing detected/guessed build settings, it now
prints the options you should use if you want to set it to something else.
-rwxr-xr-xconfigure.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/configure.py b/configure.py
index 819ee31c4..8709e6c33 100755
--- a/configure.py
+++ b/configure.py
@@ -143,8 +143,8 @@ def process_command_line(args):
target_group.add_option('--cc', dest='compiler',
help='set the desired build compiler')
- target_group.add_option('--os', default=platform.system().lower(),
- help='set the target operating system [%default]')
+ target_group.add_option('--os',
+ help='set the target operating system')
target_group.add_option('--cpu',
help='set the target processor type/model')
target_group.add_option('--with-endian', metavar='ORDER', default=None,
@@ -1468,6 +1468,10 @@ def main(argv = None):
(modules, archinfo, ccinfo, osinfo) = load_info_files(options)
+ if options.os is None:
+ options.os = platform.system().lower()
+ logging.info('Guessing taget OS is %s (--os to set)' % (options.os))
+
if options.compiler is None:
if options.os == 'windows':
if which('cl.exe') is not None:
@@ -1478,7 +1482,8 @@ def main(argv = None):
options.compiler = 'msvc'
else:
options.compiler = 'gcc'
- logging.info('Guessing to use compiler %s' % (options.compiler))
+ logging.info('Guessing to use compiler %s (--cc to set)' % (
+ options.compiler))
if options.compiler not in ccinfo:
raise Exception('Unknown compiler "%s"; available options: %s' % (
@@ -1500,7 +1505,7 @@ def main(argv = None):
if options.cpu is None:
(options.arch, options.cpu) = guess_processor(archinfo)
- logging.info('Guessing target processor is a %s/%s' % (
+ logging.info('Guessing target processor is a %s/%s (--cpu to set)' % (
options.arch, options.cpu))
else:
cpu_from_user = options.cpu