mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Add a build target for include-what-you-use
This commit is contained in:
9
Makefile
9
Makefile
@@ -3,7 +3,7 @@
|
|||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .cpp .y .o
|
.SUFFIXES: .cpp .y .o
|
||||||
|
|
||||||
.PHONY: all clean install checkdiff develop debug profile coverage mingw32 mingw64 wine-shim dist
|
.PHONY: all clean install checkdiff develop debug profile coverage iwyu mingw32 mingw64 wine-shim dist
|
||||||
|
|
||||||
# User-defined variables
|
# User-defined variables
|
||||||
|
|
||||||
@@ -236,6 +236,13 @@ coverage:
|
|||||||
$Qenv ${MAKE} \
|
$Qenv ${MAKE} \
|
||||||
CXXFLAGS="-ggdb3 -Og --coverage -fno-omit-frame-pointer -fno-optimize-sibling-calls"
|
CXXFLAGS="-ggdb3 -Og --coverage -fno-omit-frame-pointer -fno-optimize-sibling-calls"
|
||||||
|
|
||||||
|
# This target is used during development in order to remove unused `#include` headers.
|
||||||
|
|
||||||
|
iwyu:
|
||||||
|
$Qenv ${MAKE} \
|
||||||
|
CXX="include-what-you-use" \
|
||||||
|
REALCXXFLAGS="-std=c++2a -I include"
|
||||||
|
|
||||||
# Targets for the project maintainer to easily create Windows exes.
|
# Targets for the project maintainer to easily create Windows exes.
|
||||||
# This is not for Windows users!
|
# This is not for Windows users!
|
||||||
# If you're building on Windows with Cygwin or MinGW, just follow the Unix
|
# If you're building on Windows with Cygwin or MinGW, just follow the Unix
|
||||||
|
|||||||
Reference in New Issue
Block a user