File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Modern C++ Makefile Template
22
3- [ ![ Make] ( https://img.shields.io/badge/Build-Make-6D00CC?style=flat&logo=cmake&logoColor=white )] ( https://www.gnu.org/software/make/ )
3+ ![ Make] ( https://img.shields.io/badge/Build-Make-6D00CC?style=flat&logo=cmake&logoColor=white )
44![ Platform] ( https://img.shields.io/badge/Platform-Windows%20%7C%20Linux%20%7C%20macOS-lightgrey?style=flat )
55[ ![ C] ( https://img.shields.io/badge/Language-C-A8B9CC?style=flat&logo=c )] ( < https://en.wikipedia.org/wiki/C_(programming_language) > )
66[ ![ C++] ( https://img.shields.io/badge/Language-C%2B%2B-00599C?style=flat&logo=cplusplus&logoColor=white )] ( https://isocpp.org/ )
@@ -187,11 +187,11 @@ make -j8 release
187187
188188The Makefile automatically selects the best LTO variant based on your compiler:
189189
190- | Compiler | LTO Type | Benefit |
191- | ----------| ----------| ---------|
190+ | Compiler | LTO Type | Benefit |
191+ | ----------------- | ------------ | ------------------------------------- |
192192| ** Clang/clang++** | ` -flto=thin ` | Faster compilation, good optimization |
193- | ** GCC/g++** | ` -flto=auto ` | Best optimization, slower linking |
194- | ** Disabled** | (none) | Fastest build time |
193+ | ** GCC/g++** | ` -flto=auto ` | Best optimization, slower linking |
194+ | ** Disabled** | (none) | Fastest build time |
195195
196196``` bash
197197# Enable LTO (default in release builds)
You can’t perform that action at this time.
0 commit comments