aboutsummaryrefslogtreecommitdiff
path: root/salis.py
diff options
context:
space:
mode:
Diffstat (limited to 'salis.py')
-rwxr-xr-xsalis.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/salis.py b/salis.py
index 8a174ca..f56864c 100755
--- a/salis.py
+++ b/salis.py
@@ -71,7 +71,7 @@ option_list = [
["f", "force", None, "overwrite existing simulation of given name", False, False, bool, [new]],
["F", "muta-flip", None, "cosmic rays flip bits instead of randomizing whole bytes", False, False, bool, [bench, new]],
["g", "compiler", "CC", "C compiler to use", "gcc", False, str, [bench, load, new, serve]],
- ["G", "compiler-flags", "FLAGS", "base set of flags to pass to C compiler", "-Wall -Wextra -Werror", False, str, [bench, load, new, serve]],
+ ["G", "compiler-flags", "FLAGS", "base set of flags to pass to C compiler", "-Wall -Wextra -Werror -pedantic", False, str, [bench, load, new, serve]],
["M", "muta-pow", "POW", "mutator range exponent (range == 2^{POW})", 32, False, ipos, [bench, new]],
["m", "mvec-pow", "POW", "memory vector size exponent (size == 2^{POW})", 20, False, ipos, [bench, new]],
["n", "name", "NAME", "name of new or loaded simulation", "def.sim", False, str, [load, new, serve]],
@@ -491,23 +491,17 @@ if args.command in ["load", "new"]:
links.update(ui_vars.links)
if args.data_push_pow:
- includes.add("sqlite3.h")
+ includes.update({"sqlite3.h", "zlib.h"})
data_push_path = os.path.join(sim_dir, f"{args.name}.sqlite3")
defines.add(f"-DDATA_PUSH_INTERVAL={2 ** args.data_push_pow}ul")
defines.add(f"-DDATA_PUSH_PATH=\"{data_push_path}\"")
- links.add("-lsqlite3")
+ links.update({"-lsqlite3", "-lz"})
info("Data will be aggregated at:", data_push_path)
-
- if arch_vars.data_is_compressed:
- includes.add("zlib.h")
- links.add("-lz")
- info("Data aggregation requires compression")
else:
warn("Data aggregation disabled")
if not args.no_compress:
includes.add("zlib.h")
- defines.add("-D_POSIX_C_SOURCE=200809L")
defines.add("-DCOMPRESS")
links.add("-lz")
info("Save file compression enabled")