[BUILD] Export compile commands (#1854)

This can be used by IDEs to figure out how to correctly compile
individual sources and offer semantic code completion.
This commit is contained in:
Goran Flegar
2023-06-28 16:11:59 +02:00
committed by GitHub
parent 690d86d039
commit 938a6754b4

View File

@@ -211,6 +211,7 @@ class CMakeBuild(build_ext):
# python directories
python_include_dir = sysconfig.get_path("platinclude")
cmake_args = [
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
"-DLLVM_ENABLE_WERROR=ON",
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + extdir,
"-DTRITON_BUILD_TUTORIALS=OFF",