This is a metarepo for the Cult programming language.
This project recently transitioned to using bazel.
- Install and configure Bazel
- If on Windows some additional configuration:
BAZEL_SH
needs to be configured to point at a bash. If one has git for windows installed anyways this can be found atC:\Program Files\Git\usr\bin\bash.exe
.BAZEL_VC
needs to be configured to point at visual studio. For 2017 community this is atC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC
(Bazel should find this path automatically and report it as a warning if not set).
- Open this folder in your command line of choice and run the build command (e.g.
bazel build types:runtime_explorer
) for the given sub project (exectuables are availble underbazel-bin
, e.g../bazel-bin/types/runtime_explorer
):
types:runtime_explorer
- build the container
docker build -t cultlang/buildbox .
- Mount this directory into the buildbox Bash:
docker run -it -v $(pwd):/src cultlang/buildbox bash
Cmd:
docker run -it -v %cd%:/src cultlang/buildbox bash
- Do your normal build stuffs
Here's some things that can go wrong on Windows:
- Visual Studio currently (10/10/18) can't be installed to other drives besides C:
- Windows Defender in Active scan mode can be starved for threads when building in parallel, ruining build times