-
Notifications
You must be signed in to change notification settings - Fork 5
Getting Started
solar-mist edited this page May 9, 2024
·
9 revisions
A brief guide on how to install the viper compiler
- Any C++ compiler that supports C++20
- CMake
- Clone the GitHub repository
git clone https://github.com/viper-org/viper-lang
- Build the Viper compiler by running
cmake .
cmake --build .
If the build is taking a long time, you may use the -j
flag to use multiple cores when compiling. It is recommended to use -j{Number of threads on your system + 2}
for the fastest build.
A simple viper program looks like this:
func @main() -> i32 {
return 0;
}
Wiki created by @solar-mist and @Kami