Add a new optional CONFIGURE_ARGS environment variable to the configure
step so that there's a mechanism to pass custom cmake options that
aren't handled elsewhere in the run-make.sh script.
Because configure is a rather fundamental build step it's probably
preferable to set this via an env file so that it persists across
rebuilds. Using an environment var here also avoids both needing to
change run-make.sh or add another CLI option to BWC which already has
too many.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
@Builder.set(Steps.CONFIGURE)
def bc_configure(ctx):
- """Configure the build"""
+ """Configure the build.
+
+ Use the environment variable CONFIGURE_ARGS to pass custom arguments
+ for cmake configuration if needed.
+ """
ctx.build.wants(Steps.CONTAINER, ctx)
ctx.build.wants(Steps.NPM_CACHE, ctx)
cmd = _container_cmd(
[
"bash",
"-c",
- f"cd {ctx.cli.homedir} && source ./src/script/run-make.sh && has_build_dir || configure",
+ f"cd {ctx.cli.homedir} && source ./src/script/run-make.sh && has_build_dir || configure ${{CONFIGURE_ARGS}}",
],
)
with ctx.user_command():