summaryrefslogtreecommitdiffstats
path: root/bootstrap.py
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-06-27 20:19:46 (GMT)
committerNico Weber <nicolasweber@gmx.de>2014-06-27 20:19:46 (GMT)
commit69bfacebae8315de585837f625739e7621fa38d4 (patch)
tree8a61e69a62ebc56f7b96463c910975d58ba09e7c /bootstrap.py
parent63d5b1013cafb2db95687cf446eb5bb68cf6a27a (diff)
parent7c231a3d0d800bfc2602da097b34d1edca2f600f (diff)
downloadNinja-69bfacebae8315de585837f625739e7621fa38d4.zip
Ninja-69bfacebae8315de585837f625739e7621fa38d4.tar.gz
Ninja-69bfacebae8315de585837f625739e7621fa38d4.tar.bz2
v1.5.0v1.5.0
Diffstat (limited to 'bootstrap.py')
-rwxr-xr-xbootstrap.py13
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)