Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
enable increment build for build_libtorch (pytorch#63074)
Browse files Browse the repository at this point in the history
Summary:
Since issue pytorch#59859 is resolved.

rerun_cmake in build_libtorch should not be hardcoded.
build_libtorch is necessary to generate debug version libtorch.

Pull Request resolved: pytorch#63074

Reviewed By: VitalyFedyunin, seemethere

Differential Revision: D30306705

Pulled By: malfet

fbshipit-source-id: f2077d334191f4973da0681560937bc8bab730c1
  • Loading branch information
mszhanyi authored and facebook-github-bot committed Aug 20, 2021
1 parent efe01c5 commit e0fe569
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/build_libtorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
if __name__ == '__main__':
# Placeholder for future interface. For now just gives a nice -h.
parser = argparse.ArgumentParser(description='Build libtorch')
parser.add_argument('--rerun-cmake', action="store_true", help='rerun cmake')
parser.add_argument('--cmake-only', action="store_true",
help='Stop once cmake terminates. Leave users a chance to adjust build options')
options = parser.parse_args()

build_caffe2(version=None, cmake_python_library=None, build_python=False,
rerun_cmake=True, cmake_only=False, cmake=CMake())
rerun_cmake=options.rerun_cmake, cmake_only=options.cmake_only, cmake=CMake())

0 comments on commit e0fe569

Please sign in to comment.