Skip to content

A docker repo, primarily for learning dev env setup, CI, and deployment.

Notifications You must be signed in to change notification settings

osjacky430/cpp-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker

A self learning repo regarding docker usage, including development, CI, and deployment.

Compiler used

Additional versions of the compiler will be added in the future. These two are the one I'm using for my own project recently.

  • gcc: 13 on bookworm
  • clang: 17 on bookworm

Tool used

These tools will be kept as up-to-date as possible

  • cmake: build system generator
  • ninja: build system
  • ccache: compiler cache
  • mold: linker
  • conan: c++ package manager

Some notes

To use clang's stl implementation, remember to compile the code with libc++, by specifying build flag:

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT ANDROID)
  add_compile_options(-stdlib=libc++)
  add_link_options(-stdlib=libc++)
endif()

TODO

  1. Including more tools, such as clang-tidy, iwyu, cppcheck (?)

Reference

About

A docker repo, primarily for learning dev env setup, CI, and deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages