mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 15:22:15 +00:00
[WebAssembly] Remove existing library before creating it with 'ar'
This commit is contained in:
parent
46cf4c8640
commit
012c04aa2b
2
libc.py
2
libc.py
@ -160,6 +160,8 @@ class ObjCompiler(Compiler):
|
|||||||
return os.path.basename(src)[:-1] + 'o' # .c -> .o
|
return os.path.basename(src)[:-1] + 'o' # .c -> .o
|
||||||
|
|
||||||
def binary(self):
|
def binary(self):
|
||||||
|
if os.path.exists(self.out):
|
||||||
|
os.remove(self.out)
|
||||||
check_output([os.path.join(self.clang_dir, 'llvm-ar'), 'rcs', self.out] + self.compiled,
|
check_output([os.path.join(self.clang_dir, 'llvm-ar'), 'rcs', self.out] + self.compiled,
|
||||||
cwd=self.tmpdir)
|
cwd=self.tmpdir)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user