Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bazel Build Experimentation

This project explores the Bazel build system. It includes a simple script on how to create an Intellij module and example binaries in python/java/scala/c++ for the Fibonacci sequence.

Running Binaries

Below are examples of how to build and run the Fib function in Java, Scala and Python. I put the function in a new folder to make the build structure a bit more interesting.

Java

>> bazel build //src/main/java/engine:bin
>> bazel-bin/src/main/java/engine/bin
Fib(10)=55

Scala

>> bazel build //src/main/scala/engine:bin
>> bazel-bin/src/main/scala/engine/bin
Fib(10)=55

Python

>> bazel build //src/main/python/engine:bin
>> bazel-bin/src/main/python/engine/bin
Fib(10)=55

C++

>> bazel build //src/main/cpp/engine:bin
>> bazel-bin/src/main/cpp/engine/bin
Fib(10)=55

Pure C

>> bazel build //src/main/c/engine:bin
>> bazel-bin/src/main/c/engine/bin
Fib(10)=55

Rust

>> bazel build //src/main/rust/engine:bin
>> bazel-bin/src/main/rust/engine/bin
Fib(10)=55

About

Experimental Bazel Project Setup

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages