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
Sean Silva 2020-05-11 12:58:42 -07:00
parent 950ba12426
commit 1ef8b91a95
1 changed files with 1 additions and 0 deletions

View File

@ -36,5 +36,6 @@ cmake -GNinja \
"-DPYTHON_EXECUTABLE=$python_exe" \ "-DPYTHON_EXECUTABLE=$python_exe" \
"-DMLIR_DIR=$install_mlir/lib/cmake/mlir" \ "-DMLIR_DIR=$install_mlir/lib/cmake/mlir" \
"-DLLVM_EXTERNAL_LIT=$build_mlir/bin/llvm-lit" \ "-DLLVM_EXTERNAL_LIT=$build_mlir/bin/llvm-lit" \
"-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE" \
"${extra_opts[@]}" \ "${extra_opts[@]}" \
"$@" "$@"