Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 5ec0c4b

Browse files
author
guanghuispark
committed
Update lib_build.py
1 parent cb8f324 commit 5ec0c4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/Scripts/lib_build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def build_engine():
297297
os.makedirs(Path(work_path + "/../artifacts/rsp/backup"))
298298
copy_file(Path(work_path + "/../" + rsp), Path(work_path + "/../artifacts/rsp/backup"))
299299
os.chdir(Path(work_path))
300-
rsp_patch()
300+
rsp_patch(rsp)
301301
os.chdir(Path(work_path + "/../"))
302302
os.system("artifacts/Stevedore/android-ndk-mac/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ " + "@\"" + rsp + "\"")
303303
os.system(flutter_root_path + "/buildtools/mac-x64/clang/bin/clang++ " + "@\"" + rsp + "\"")
@@ -364,10 +364,10 @@ def copy_file(source_path, target_path):
364364
shutil.copy(src_file, target_path)
365365

366366

367-
def rsp_patch():
367+
def rsp_patch(rsp_path):
368368
global work_path
369369
file_data = ""
370-
file = Path(work_path + "/../artifacts/rsp/14590475716575637239.rsp")
370+
file = Path(work_path + "/../" + rsp_path)
371371
old_str = ',--icf-iterations=5'
372372
with open(file, "r") as f:
373373
for line in f:

0 commit comments

Comments
 (0)