Skip to content

Commit

Permalink
add PVS-Studio support
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Nov 16, 2012
1 parent 2f2b2a1 commit 690966a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/win32.mak
Expand Up @@ -110,6 +110,8 @@ TOLF=tolf
ZIP=zip32
# Copy to another directory
SCP=$(CP)
# PVS-Studio command line executable
PVS="c:\Program Files (x86)\PVS-Studio\x64\PVS-Studio"

##### User configuration switches

Expand Down Expand Up @@ -229,8 +231,8 @@ BACKSRC= $C\cdef.h $C\cc.h $C\oper.h $C\ty.h $C\optabgen.c \
$C\html.h $C\html.c

# Toolkit
TKSRC= $(TK)\filespec.h $(TK)\mem.h $(TK)\list.h $(TK)\vec.h \
$(TK)\filespec.c $(TK)\mem.c $(TK)\vec.c $(TK)\list.c
TKSRCC= $(TK)\filespec.c $(TK)\mem.c $(TK)\vec.c $(TK)\list.c
TKSRC= $(TK)\filespec.h $(TK)\mem.h $(TK)\list.h $(TK)\vec.h $(TKSRCC)

# Root package
ROOTSRC= $(ROOT)\root.h $(ROOT)\root.c $(ROOT)\array.c \
Expand Down Expand Up @@ -356,6 +358,12 @@ scp: detab tolf $(MAKEFILES)
$(SCP) $(TKSRC) $(SCPDIR)/src/tk
$(SCP) $(ROOTSRC) $(SCPDIR)/src/root

pvs:
# $(PVS) --cfg PVS-Studio.cfg --cl-params /I$(ROOT) $(SRCS) --source-file $(SRCS)
# $(PVS) --cfg PVS-Studio.cfg --cl-params /I$(ROOT) $(ROOTSRC) --source-file $(ROOTSRC)
# $(PVS) --cfg PVS-Studio.cfg --cl-params /I$C;$(TK) $(BACKSRC) --source-file $(BACKSRC)
$(PVS) --cfg PVS-Studio.cfg --cl-params /I$(TK) $(TKSRCC) --source-file $(TKSRCC)


############################## Generated Source ##############################

Expand Down

0 comments on commit 690966a

Please sign in to comment.