summaryrefslogtreecommitdiff
path: root/make/template
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2012-12-07 07:00:11 -0800
committerAttila Molnar <attilamolnar@hush.com>2012-12-07 07:00:11 -0800
commit7f582ed98c40ada1ad348a758f643ac83d50a8df (patch)
treeda1ebb5fe27fe35159f59eab62a87e1d5d463869 /make/template
parent391ec2c499523e98c681ccf5bf9f03a4fe551f57 (diff)
parentc468e9b368991c0cab2032cdec513ad25b57e8d9 (diff)
Merge pull request #380 from SaberUK/insp20+fix-clang-warning
Fix invalid argument warnings on clang.
Diffstat (limited to 'make/template')
-rw-r--r--make/template/main.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 1c61547fd..87a80162c 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -87,7 +87,10 @@ INSTMODE_LIB = 0644
DBGOK=0
@IFEQ $(D) 0
- CXXFLAGS += -O2 -g1
+ CXXFLAGS += -O2
+ @IFEQ $(CC) gcc
+ CXXFLAGS += -g1
+ @ENDIF
HEADER = std-header
DBGOK=1
@ENDIF