diff options
author | lloyd <[email protected]> | 2009-07-02 22:44:15 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-07-02 22:44:15 +0000 |
commit | f67b2d87474efc2ceae909fd3ddd4d1b52189d67 (patch) | |
tree | e0ed86d7a2aebb88bf7338cfa9d1ee033b488b5f | |
parent | c0ef6445300f404c75175a3d44247624b297948b (diff) |
Add a bit of status output. Guess msvc as cc for Windows boxen
-rwxr-xr-x | configure.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/configure.py b/configure.py index 8d97d9111..c18abbac6 100755 --- a/configure.py +++ b/configure.py @@ -847,6 +847,9 @@ def setup_build(build_config, options, template_vars): for header_file in build_config.headers: portable_symlink(header_file, build_config.full_include_dir) +def autoconfig(s): + print s + def main(argv = None): if argv is None: argv = sys.argv @@ -860,9 +863,12 @@ def main(argv = None): (modules, archinfo, ccinfo, osinfo) = load_info_files(options) - # FIXME: epic fail if options.compiler is None: - options.compiler = 'gcc' + if platform.system().lower() == 'windows': + options.compiler = 'msvc' + else: + options.compiler = 'gcc' + autoconfig('Guessing to use compiler %s' % (options.compiler)) if options.compiler not in ccinfo: raise Exception('Unknown compiler "%s"; available options: %s' % ( @@ -874,6 +880,7 @@ def main(argv = None): if options.cpu is None: (options.arch, options.cpu) = guess_processor(archinfo) + autoconfig('Guessing target processor is a %s/%s' % (options.arch, options.cpu)) else: (options.arch, options.cpu) = canon_processor(archinfo, options.cpu) @@ -896,6 +903,8 @@ def main(argv = None): # Performs the I/O setup_build(build_config, options, template_vars) + autoconfig('Build setup complete') + if __name__ == '__main__': try: sys.exit(main()) |