---
title: "Discussion on \"Separating builds for different configs with Bazel\" | Hashnode"
description: "Discussion on \"Separating builds for different configs with Bazel\". Welcome to the next pikoTutorial!\nLet's consider a simple project with the following structure:\nproject/\n├── .bazelrc\n├── BUILD\n├── main.cpp\n├── WORKSPACE\nThe main function has 2 compile switches:\n#include <iostream>\n\nint main(int argc, char** argv)\n..."
url: "https://hashnode.com/posts/separating-builds-for-different-configs-with-bazel/68944f1ec055797cd0267053"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Separating builds for different configs with Bazel](https://pikotutorial.hashnode.dev/separating-builds-for-different-configs-with-bazel?utm_source=hashnode&utm_medium=feed)

Welcome to the next pikoTutorial! Let's consider a simple project with the following structure: project/ ├── .bazelrc ├── BUILD ├── main.cpp ├── WORKSPACE The main function has 2 compile switches: #include <iostream> int main(int argc, char\*\* argv) ...

Aug 7, 2025 · 1 min read · pikotutorial.hashnode.dev  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#bazel](https://hashnode.com/tag/bazel)
-   [#pikotutorial](https://hashnode.com/tag/pikotutorial)

## Written by

[pikoTutorial](https://hashnode.com/@pikotutorial)

@pikotutorial

  
[View profile](https://hashnode.com/@pikotutorial)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
