mirror of
https://github.com/facebook/zstd.git
synced 2025-08-08 17:22:10 +03:00
[contrib][freestanding] Remove tracing support
Remove tracing support from `freestanding.py` to keep things simple.
This commit is contained in:
@@ -27,6 +27,7 @@ SKIPPED_FILES = [
|
||||
"common/pool.h",
|
||||
"common/threading.c",
|
||||
"common/threading.h",
|
||||
"common/zstd_trace.c",
|
||||
"compress/zstdmt_compress.h",
|
||||
"compress/zstdmt_compress.c",
|
||||
]
|
||||
@@ -656,6 +657,10 @@ def main(name, args):
|
||||
if name in args.undefs:
|
||||
raise RuntimeError(f"{name} is both defined and undefined!")
|
||||
|
||||
# Always set tracing to 0
|
||||
if "ZSTD_TRACE" not in (arg[0] for arg in args.defs):
|
||||
args.defs.append(("ZSTD_TRACE", "0"))
|
||||
|
||||
args.replaces = parse_pair(args.replaces)
|
||||
for name, _ in args.replaces:
|
||||
if name in args.undefs or name in args.defs:
|
||||
|
Reference in New Issue
Block a user