This repository was archived by the owner on Aug 31, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,11 +163,11 @@ dist-server: dist-server-community
163163
164164dist-server-community :
165165 $(buildtool_command ) --platform mac --platform win --platform linux \
166- --stage server --edition community
166+ --stage server --edition community --warn-as-error
167167
168168dist-server-commercial :
169169 $(buildtool_command ) --platform mac --platform win --platform linux \
170- --stage server --edition commercial
170+ --stage server --edition commercial --warn-as-error
171171
172172ifeq ($(BUILD_EDITION ) ,commercial)
173173dist-tools : dist-tools-commercial
Original file line number Diff line number Diff line change @@ -164,14 +164,18 @@ end __loadExternal
164164
165165command __builderLog pType, pMessage
166166 local tLine
167+
168+ -- Promote builder warnings to errors, if requested
169+ if pType is "warning" and sWarnAsError then
170+ put "error" into pType
171+ end if
167172
168173 put toUpper (char 1 of pType ) into char 1 of pType
169174
170175 repeat for each line tLine in pMessage
171176 write ("[" && the internet date && "]" && ":" && pType && ":" && tLine & return) to stderr
172177 end repeat
173- if pType is "warning" and sWarnAsError or \
174- pType is "error" then
178+ if pType is "error" then
175179 quit 1
176180 end if
177181end __builderLog
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ function builderBuiltDocsFolder
304304end builderBuiltDocsFolder
305305
306306function builderBuiltNotesFolder
307- return builderRepoFolder() & slash & "_build/notes"
307+ return builderRepoFolder()
308308end builderBuiltNotesFolder
309309
310310function builderCommercialFolder
You can’t perform that action at this time.
0 commit comments