aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorDominic Wong <dom@slowbunyip.org>2013-11-17 19:29:16 +0800
committerDominic Wong <dom@slowbunyip.org>2013-11-17 19:29:16 +0800
commitf37e8f5869da88b891384db859c18a7243505d61 (patch)
tree3584780001e7d221c72d7a03efe2a90154b699bf /tools/shared.py
parent0bf4cdefdcce10fcfb703ac637183eb7fabd702c (diff)
Fixed timestamps on object files extracted from archives during link.
This affects builds that use absolute paths to object files when adding to library archives, causing unnecessary archives.
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 0a6740b9..ba476883 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -1029,7 +1029,7 @@ class Building:
dirname = os.path.dirname(content)
if dirname and not os.path.exists(dirname):
os.makedirs(dirname)
- Popen([LLVM_AR, 'x', f], stdout=PIPE).communicate() # if absolute paths, files will appear there. otherwise, in this directory
+ Popen([LLVM_AR, 'xo', f], stdout=PIPE).communicate() # if absolute paths, files will appear there. otherwise, in this directory
contents = map(lambda content: os.path.join(temp_dir, content), contents)
contents = filter(os.path.exists, map(os.path.abspath, contents))
added_contents = set()