summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-09-14 19:08:02 (GMT)
committerEvan Martin <martine@danga.com>2011-09-14 19:08:02 (GMT)
commitbbc111010163fab044a4782b771fdd6dfa289c66 (patch)
treee76c40f4070220e7dfbe0b1713a2fb0d7a5fe222 /configure.py
parentf47c158ba6c538e928005a49f05dbd9c23923c15 (diff)
downloadNinja-bbc111010163fab044a4782b771fdd6dfa289c66.zip
Ninja-bbc111010163fab044a4782b771fdd6dfa289c66.tar.gz
Ninja-bbc111010163fab044a4782b771fdd6dfa289c66.tar.bz2
delete .a files before adding to them with ar
ar doesn't have a mode to just rebuild the file from scratch, so delete it manually. Fixes issue #105.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 846fe35..a9479bf 100755
--- a/configure.py
+++ b/configure.py
@@ -113,7 +113,7 @@ ar = 'ar'
if platform == 'mingw':
ar = 'i586-mingw32msvc-ar'
n.rule('ar',
- command=ar + ' crs $out $in',
+ command='rm -f $out && %s crs $out $in' % ar,
description='AR $out')
n.newline()