浏览代码

Update lib_build.py

/zgh-build_scripts
guanghuispark 4 年前
当前提交
946945fe
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      engine/Scripts/lib_build.py

6
engine/Scripts/lib_build.py


os.makedirs(Path(work_path + "/../artifacts/rsp/backup"))
copy_file(Path(work_path + "/../" + rsp), Path(work_path + "/../artifacts/rsp/backup"))
os.chdir(Path(work_path))
rsp_patch()
rsp_patch(rsp)
os.chdir(Path(work_path + "/../"))
os.system("artifacts/Stevedore/android-ndk-mac/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ " + "@\"" + rsp + "\"")
os.system(flutter_root_path + "/buildtools/mac-x64/clang/bin/clang++ " + "@\"" + rsp + "\"")

shutil.copy(src_file, target_path)
def rsp_patch():
def rsp_patch(rsp_path):
file = Path(work_path + "/../artifacts/rsp/14590475716575637239.rsp")
file = Path(work_path + "/../" + rsp_path)
old_str = ',--icf-iterations=5'
with open(file, "r") as f:
for line in f:

正在加载...
取消
保存