pytorch/tools/setup_helpers
Isuru Fernando 273188549f pass through *EXITCODE *EXITCODE__TRYRUN_OUTPUT variables (#49646)
Summary:
This is needed to allow cross compiling to work

There are some `try_run` statements in CMake files used for building pytorch and dependencies. Since we are cross compiling, there's no way to run the compiled executables to get the output for `try_run` function. CMake provides a solution to this by requiring the user to manually provide the exitcode and the output of the executable which should be given by `*EXITCODE` and `*EXITCODE__TRYRUN_OUTPUT` respectively.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/49646

Reviewed By: heitorschueroff

Differential Revision: D29960301

Pulled By: malfet

fbshipit-source-id: b10ab9c182d1220f7e1911f922e7db261d521145
2021-07-30 08:22:33 -07:00
..
__init__.py Strictly type everything in .github and tools (#59117) 2021-06-07 14:49:36 -07:00
cmake.py pass through *EXITCODE *EXITCODE__TRYRUN_OUTPUT variables (#49646) 2021-07-30 08:22:33 -07:00
env.py Strictly type everything in .github and tools (#59117) 2021-06-07 14:49:36 -07:00
gen_version_header.py Strictly type everything in .github and tools (#59117) 2021-06-07 14:49:36 -07:00
gen.py Rewrite of ATen code generator (#42629) 2020-08-31 09:00:22 -07:00
generate_code.py Strictly type everything in .github and tools (#59117) 2021-06-07 14:49:36 -07:00
numpy_.py Add more comment on NumPy detection in Python scripts. 2019-11-26 17:38:27 -08:00