Skip to content

Development

Turiiya edited this page Apr 7, 2024 · 1 revision

Prerequisites

Note

This repository uses Git submodules. In practice, this means that you can clone the repository recursively using:

git clone --recursive --shallow-submodules \
  --filter=blob:none --also-filter-submodules \
  https://github.com/vlang/v-analyzer

... or, if you already used git clone https://github.com/vlang/v-analyzer, execute below inside your local v-analyzer clone:

git submodule init && git submodule update

If you do not do either, the symptom is that when you try to build v-analyzer, you will get a C compiler message, about lib.c not found.

Tip

On Windows, use GCC for building, as TCC can run into some issues.

Update V to the latest version:

v up

Building from Source

You can build the debug or release version of the binary. The debug version will be slower and contain additional debugging information, but is faster to compile.

v build.vsh debug
v build.vsh release

The binary will be placed in the bin/ folder.

Clone this wiki locally