Skip to content

Commit c31f480

Browse files
committed
fix so copy failed error
1 parent 38dc41f commit c31f480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mars/libraries/build_android.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ def main():
244244
SO_SYMBOL_CACHE_DIR = sdk_path + "/so_cache/symbol/"
245245
SO_DES_DIR = sdk_path + "/libs/"
246246
SO_SYMBOL_DES_IR = sdk_path + "/obj/local/"
247-
247+
if os.path.exists(SO_CACHE_DIR):
248+
shutil.rmtree(SO_CACHE_DIR)
248249

249250
for i in range(0, len(archs)):
250251
print "build %s" %(archs[i])
@@ -283,7 +284,6 @@ def main():
283284
if "2" == num or "3" == num:
284285
return
285286

286-
287287
if os.path.exists(SO_DES_DIR):
288288
shutil.rmtree(SO_DES_DIR)
289289
if os.path.exists(SO_SYMBOL_DES_IR):

0 commit comments

Comments
 (0)