mirror of https://github.com/llvm/torch-mlir
Add -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE
This allows VSCode (and presumably other IDE's) to pick up a `tools/cmake_configure.sh`'ed build directory and have intellisense.pull/1/head
parent
950ba12426
commit
1ef8b91a95
|
@ -36,5 +36,6 @@ cmake -GNinja \
|
|||
"-DPYTHON_EXECUTABLE=$python_exe" \
|
||||
"-DMLIR_DIR=$install_mlir/lib/cmake/mlir" \
|
||||
"-DLLVM_EXTERNAL_LIT=$build_mlir/bin/llvm-lit" \
|
||||
"-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE" \
|
||||
"${extra_opts[@]}" \
|
||||
"$@"
|
||||
|
|
Loading…
Reference in New Issue