Skip to content
Snippets Groups Projects
Commit 592248e0 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add WERROR build option.

Also, add a BUILD_ARGS variable so custom pipelines can be ran
for the templated job tree.
parent 63f8f179
No related branches found
No related tags found
No related merge requests found
Pipeline #5623 failed
......@@ -36,7 +36,7 @@ spec:
script:
- cd 3rdp/build
- touch depend
- gmake $[[ inputs.build_flags ]] libmozjs
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS libmozjs
artifacts:
expire_in: 30 mins
name: "spidermonkey-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -53,7 +53,7 @@ spec:
script:
- cd 3rdp/build
- touch depend
- gmake $[[ inputs.build_flags ]] cryptlib
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS cryptlib
artifacts:
expire_in: 30 mins
name: "cryptlib-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -66,7 +66,7 @@ spec:
script:
- cd src/xpdev
- touch depend
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
expire_in: 30 mins
name: "xpdev-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -80,7 +80,7 @@ spec:
script:
- cd src/encode
- touch depend
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
expire_in: 30 mins
name: "encode-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -94,7 +94,7 @@ spec:
script:
- cd src/hash
- touch depend
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
expire_in: 30 mins
name: "hash-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -108,7 +108,7 @@ spec:
script:
- cd src/conio
- touch depend
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
expire_in: 30 mins
name: "ciolib-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -122,7 +122,7 @@ spec:
script:
- cd src/sftp
- touch depend
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
expire_in: 30 mins
name: "sftp-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -136,7 +136,7 @@ spec:
script:
- cd src/smblib
- touch depend
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
expire_in: 30 mins
name: "smblib-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -150,7 +150,7 @@ spec:
script:
- cd src/uifc
- touch depend
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
expire_in: 30 mins
name: "uifc-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -164,7 +164,7 @@ spec:
script:
- cd src/sbbs3
- touch depend
- gmake $[[ inputs.build_flags ]] gitinfo
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS gitinfo
artifacts:
expire_in: 30 mins
name: "gitinfo-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -186,7 +186,7 @@ spec:
- touch uifc
- touch uifc-mt
- touch cl
- gmake $[[ inputs.build_flags ]] GIT=NO
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS GIT=NO
artifacts:
expire_in: 30 mins
name: "scfg-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -217,7 +217,7 @@ spec:
- touch ciolib-mt
- touch uifc
- touch uifc-mt
- gmake $[[ inputs.build_flags ]] GIT=NO
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS GIT=NO
artifacts:
expire_in: 30 mins
name: "uedit-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -251,7 +251,7 @@ spec:
- touch ciolib-mt
- touch uifc
- touch uifc-mt
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
expire_in: 30 mins
name: "umonitor-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -281,7 +281,7 @@ spec:
- touch ciolib-mt
- touch uifc
- touch uifc-mt
- gmake $[[ inputs.build_flags ]] GIT=NO standalone-utils
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS GIT=NO standalone-utils
artifacts:
expire_in: 30 mins
name: "utils-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......@@ -330,7 +330,7 @@ spec:
- touch umonitor/uifc-mt
- touch umonitor/xpdev-mt
- touch umonitor/smblib
- gmake $[[ inputs.build_flags ]] GIT=NO all
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS GIT=NO all
artifacts:
name: "sbbs-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths:
......@@ -374,7 +374,7 @@ spec:
- touch uifc-mt
- touch sftp-mt
- touch cl
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
name: "syncterm-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths:
......@@ -397,7 +397,7 @@ spec:
- touch xpdev
- touch xpdev-mt
- touch ciolib-mt
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
name: "syncdraw-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths:
......@@ -423,7 +423,7 @@ spec:
- touch sftp-mt
- touch cl
- touch js
- gmake $[[ inputs.build_flags ]] jsdoor
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS jsdoor
artifacts:
name: "jsdoor-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths:
......@@ -451,7 +451,7 @@ spec:
- touch depend
- touch xpdev
- touch xpdev-mt
- gmake $[[ inputs.build_flags ]]
- gmake $[[ inputs.build_flags ]] $BUILD_ARGS
artifacts:
name: "sexpots-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths:
......
variables:
BUILD_ARGS:
description: "Extra arguments to pass on gmake command lines."
.rules:
rules:
- changes:
......
......@@ -94,6 +94,7 @@
# MT_LDFLAGS - LDFLAGS for linking MT targets #
# UL_PRE - Use Library prefix (*nix is -l) #
# UL_SUF - Use Library siffix (bcc is .lib) #
# WERROR - Error on warnings #
# #
# Common Targets Defined: #
# Implicit C and C++ targets #
......@@ -163,6 +164,11 @@ ifndef VERBOSE
QUIET := @
endif
# WERROR
ifdef WERROR
CFLAGS += -Werror
endif
# Compiler-specific options
CFLAGS += -MMD
CC ?= gcc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment