[DOCS] update build instructions, and add testing instrs. (#2400)

- Note `wheel` as a build-time dependency.
- Add tips for getting a faster build.
- Add instructions for running tests.
- Add flag to build with ccache.

(Thanks to @ThomasRaoux for most of these instructions!)
This commit is contained in:
Justin Lebar
2023-09-27 22:13:03 -07:00
committed by GitHub
parent 78c28bf5f6
commit 9bf9c20f30
2 changed files with 42 additions and 2 deletions

View File

@@ -273,6 +273,11 @@ class CMakeBuild(build_ext):
"-DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=lld",
"-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld"]
if check_env_flag("TRITON_BUILD_WITH_CCACHE"):
cmake_args += [
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
]
env = os.environ.copy()
cmake_dir = get_cmake_dir()
subprocess.check_call(["cmake", self.base_dir] + cmake_args, cwd=cmake_dir, env=env)