Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

mtklein/ob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ob, opinionated build

ob builds C and C++ programs with Ninja if they are structured in its opinionated way:

  • each source file is tracked in Git;
  • each #include within the project is source-relative;
  • each foo.c or foo.cc defines int main(...) or has a corresponding foo.h;
  • each source file defining int main(...) with test in its name is a unit test.

To build in default mode:

ob

To build in debug, release, ASAN, or TSAN mode:

ob [-D|--debug] [-R|--release] [-A|--asan] [-T|--tsan]

Any other command line flags or arguments are passed to Ninja.

ob recognizes the following environment variables: CC, CXX, CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS.

About

ob, opinionated build

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published