mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Allow USE_NINJA to be toggled by an env variable
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/16665 Differential Revision: D13930021 Pulled By: pjh5 fbshipit-source-id: 4b490f952a56e8561329ab8898be2bf779b46b9d
This commit is contained in:
committed by
Facebook Github Bot
parent
bd75fba4e8
commit
7139410b72
@ -71,7 +71,7 @@ def cmake_defines(lst, **kwargs):
|
||||
# Ninja
|
||||
# Use ninja if it is on the PATH. Previous version of PyTorch required the
|
||||
# ninja python package, but we no longer use it, so we do not have to import it
|
||||
USE_NINJA = which('ninja') is not None
|
||||
USE_NINJA = not check_negative_env_flag('USE_NINJA') and (which('ninja') is not None)
|
||||
|
||||
base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
install_dir = base_dir + "/torch"
|
||||
|
Reference in New Issue
Block a user