summaryrefslogtreecommitdiff
path: root/make/template
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-10-16 11:55:14 +0100
committerPeter Powell <petpow@saberuk.com>2019-10-16 12:34:24 +0100
commit08393c002803b93ac53a6a1a0a5272e76b6ae5e4 (patch)
treefdb60172821a1429f70cd3364a98ca36a11ed5b9 /make/template
parentd0f802e30c492cb1b7e55f51063bfd38b29931c6 (diff)
Use separate build dirs when rebuilding with a different compiler.
Diffstat (limited to 'make/template')
-rw-r--r--make/template/main.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 7e22cf254..1e6ba5cd0 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -32,7 +32,7 @@
CXX = @CXX@
COMPILER = @COMPILER_NAME@
SYSTEM = @SYSTEM_NAME@
-BUILDPATH ?= $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/build
+BUILDPATH ?= $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/build/@COMPILER_NAME@-@COMPILER_VERSION@
SOCKETENGINE = @SOCKETENGINE@
CORECXXFLAGS = -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -pipe -Iinclude -Wall -Wextra -Wfatal-errors -Wno-unused-parameter -Wshadow
LDLIBS = -lstdc++