diff options
author | Peter Powell <petpow@saberuk.com> | 2019-04-16 11:22:25 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-04-16 12:09:30 +0100 |
commit | 62dc1769c952a7211878181ff595d4328e182f6b (patch) | |
tree | a1a8e8236c4186dcd4634d032a809c29abab03b9 | |
parent | 661249a8509fb53717edd7bbbfb85060f8eaf22f (diff) |
Omit debug symbols when doing CI builds.
This provides a significant build time improvement.
-rw-r--r-- | make/template/main.mk | 6 | ||||
-rwxr-xr-x | tools/test-build | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/make/template/main.mk b/make/template/main.mk index 9c7ee9449..a41d35fca 100644 --- a/make/template/main.mk +++ b/make/template/main.mk @@ -109,6 +109,11 @@ ifeq ($(INSPIRCD_DEBUG), 2) HEADER = debug-header DBGOK=1 endif +ifeq ($(INSPIRCD_DEBUG), 3) + CORECXXFLAGS += -fno-rtti -O0 -g0 + HEADER = std-header + DBGOK=1 +endif FOOTER = finishmessage MAKEFLAGS += --no-print-directory @@ -280,6 +285,7 @@ help: @echo ' INSPIRCD_VERBOSE=1 Show the full command being executed instead of "BUILD: dns.cpp"' @echo ' INSPIRCD_DEBUG=1 Enable debug build, for module development or crash tracing' @echo ' INSPIRCD_DEBUG=2 Enable debug build with optimizations, for detailed backtraces' + @echo ' INSPIRCD_DEBUG=3 Enable fast build with no optimisations or symbols, for Travis CI' @echo ' DESTDIR= Specify a destination root directory (for tarball creation)' @echo ' -j <N> Run a parallel build using N jobs' @echo '' diff --git a/tools/test-build b/tools/test-build index 647289569..54d22f9d3 100755 --- a/tools/test-build +++ b/tools/test-build @@ -36,7 +36,8 @@ use lib $RealDir; use make::common; use make::configure; -$ENV{INSPIRCD_DEBUG} = $ENV{INSPIRCD_VERBOSE} = 1; +$ENV{INSPIRCD_DEBUG} = 3; +$ENV{INSPIRCD_VERBOSE} = 1; system 'git', 'clean', '-dfx'; |