Skip to content

Commit 3b59274

Browse files
committed
Updated build scripts
1 parent 5d0572a commit 3b59274

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*******************************************************************************
44

55
=== 1.0.12 ===
6-
6+
* Updated build scripts.
77

88
=== 1.0.11 ===
99
* Removed Makefile.d. Dependencies are now automatically generated at the build stage.

make/system.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ COMMON_VARS = \
192192
ROOT_ARTIFACT_ID \
193193
PROFILE \
194194
STATICLIB_EXT \
195+
STRICT \
195196
TEST \
196197
TRACE
197198

@@ -216,6 +217,7 @@ sysvars:
216217
echo " PLATFORM target software platform to perform build"
217218
echo " PROFILE build with profile options"
218219
echo " STATICLIB_EXT file extension for static library files"
220+
echo " STRICT strict compilation: treat compilation warnings as errors"
219221
echo " SUB_FEATURES list of features disabled in the build as a subtraction of default"
220222
echo " TEST use test build"
221223
echo " TRACE compile with additional trace information output"

make/tools.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ ifeq ($(TRACE),1)
102102
CXXFLAGS_EXT += -DLSP_TRACE
103103
endif
104104

105+
ifeq ($(STRICT),1)
106+
CFLAGS_EXT += -Werror
107+
CXXFLAGS_EXT += -Werror
108+
endif
109+
105110
ifeq ($(TEST),1)
106111
CFLAGS_EXT += -DLSP_TESTING
107112
CXXFLAGS_EXT += -DLSP_TESTING

0 commit comments

Comments
 (0)