Commit cfa361c4 authored by Hal Murray's avatar Hal Murray
Browse files

Add --enable-attic (default is off)

parent a95da63f
Pipeline #480209154 failed with stages
in 8 minutes and 9 seconds
......@@ -12,6 +12,8 @@ on user-visible changes.
== Reposatory Head ==
Add --enable-attic (default off)
Works with OpenSSL 3.0
Fix hash validation in ntpleapfetch again.
......
......@@ -12,6 +12,8 @@ def options_cmd(ctx, config):
default=False, help="Enable debugging code")
grp.add_option('--enable-debug-gdb', action='store_true',
default=False, help="Enable GDB debugging symbols")
grp.add_option('--enable-attic', action='store_true',
default=False, help="Enable building attic/*.")
grp.add_option('--disable-nts', action='store_true',
default=False, help="Disable NTS.")
grp.add_option('--disable-droproot', action='store_true',
......
......@@ -778,6 +778,9 @@ int main(int argc, char **argv) {
comment="Enable MS-SNTP extensions "
" https://msdn.microsoft.com/en-us/library/cc212930.aspx")
if ctx.options.enable_attic:
ctx.env.ENABLE_ATTIC = True
if ctx.options.disable_nts:
ctx.env.DISABLE_NTS = True
ctx.define("DISABLE_NTS", 1,
......@@ -1065,7 +1068,8 @@ def build(ctx):
ctx.recurse("ntpfrob")
ctx.recurse("ntptime")
ctx.recurse("pylib")
ctx.recurse("attic")
if ctx.env.ENABLE_ATTIC:
ctx.recurse("attic")
ctx.recurse("etc")
ctx.recurse("tests")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment