Skip to content

Commit

Permalink
add with_lsp to ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitaS11 committed Jul 7, 2022
1 parent acfec94 commit 428d1d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/build.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ cd test-bld
# compiled in Release mode and we get link failures if we mix and match build
# modes:
BUILD_TYPE = "Release"
cmake -G $LFORTRAN_CMAKE_GENERATOR -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_LLVM=yes -DWITH_XEUS=yes -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DWITH_LFORTRAN_BINARY_MODFILES=no -DCMAKE_BUILD_TYPE=@(BUILD_TYPE) ..
cmake -G $LFORTRAN_CMAKE_GENERATOR -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_LLVM=yes -DWITH_LSP=yes -DWITH_XEUS=yes -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DWITH_LFORTRAN_BINARY_MODFILES=no -DCMAKE_BUILD_TYPE=@(BUILD_TYPE) ..
cmake --build . --target install
./src/lpython/tests/test_lpython
#./src/bin/lpython < ../src/bin/example_input.txt
Expand Down
4 changes: 2 additions & 2 deletions src/bin/lpython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,9 @@ int main(int argc, char *argv[])
#ifdef HAVE_LFORTRAN_RAPIDJSON
LPythonServer().run(arg_lsp_filename);
return 0;
#else
std::cerr << "Compiler was not built with LSP support (-DWITH_LSP), please build it again.\n";
#endif
} else {
std::cerr << "Compiler was not built with LSP support (-DWITH_LSP), please build it again.\n";
}

if (arg_backend == "llvm") {
Expand Down

0 comments on commit 428d1d9

Please sign in to comment.