diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-10-27 03:15:23 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-10-27 03:15:23 (GMT) |
commit | 3aa641ec82d39760b6aa413c2870d0d418c48898 (patch) | |
tree | b3494c34fd697ec6e195fbca1ce9d6f31118ab31 /bootstrap.py | |
parent | a3c823c3da70bd46d69341f13184cdae4c77645d (diff) | |
download | Ninja-3aa641ec82d39760b6aa413c2870d0d418c48898.zip Ninja-3aa641ec82d39760b6aa413c2870d0d418c48898.tar.gz Ninja-3aa641ec82d39760b6aa413c2870d0d418c48898.tar.bz2 |
Wrap to 79 colums. No functionality change.
Diffstat (limited to 'bootstrap.py')
-rwxr-xr-x | bootstrap.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/bootstrap.py b/bootstrap.py index 66ec85b..026396b 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -34,10 +34,12 @@ parser.add_option('--verbose', action='store_true', parser.add_option('--x64', action='store_true', help='force 64-bit build (Windows)',) parser.add_option('--platform', - help='target platform (' + '/'.join(platform_helper.platforms()) + ')', + help='target platform (' + + '/'.join(platform_helper.platforms()) + ')', choices=platform_helper.platforms()) parser.add_option('--force-pselect', action='store_true', - help="ppoll() is used by default on Linux, OpenBSD and Bitrig, but older versions might need to use pselect instead",) + help='ppoll() is used by default where available, ' + 'but some platforms might need to use pselect instead',) (options, conf_args) = parser.parse_args() @@ -109,7 +111,8 @@ else: cflags.append('-D_WIN32_WINNT=0x0501') if options.x64: cflags.append('-m64') -if (platform.is_linux() or platform.is_openbsd() or platform.is_bitrig()) and not options.force_pselect: +if (platform.is_linux() or platform.is_openbsd() or platform.is_bitrig()) and \ + not options.force_pselect: cflags.append('-DUSE_PPOLL') if options.force_pselect: conf_args.append("--force-pselect") @@ -153,8 +156,8 @@ if platform.is_windows(): Done! Note: to work around Windows file locking, where you can't rebuild an -in-use binary, to run ninja after making any changes to build ninja itself -you should run ninja.bootstrap instead.""") +in-use binary, to run ninja after making any changes to build ninja +itself you should run ninja.bootstrap instead.""") else: print('Building ninja using itself...') run([sys.executable, 'configure.py'] + conf_args) |