mirror of https://github.com/OISF/suricata
ci: rustc wrapper to disable coverage for external crates
To keep the disk usage good even when we use new cratespull/13053/head
parent
a1ff7424e4
commit
7d806dc7b7
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
# RUSTC_WRAPPER to disable coverage for external crates
|
||||
# and so save disk space when running suricata-verify with many profraw files
|
||||
if len(sys.argv) > 4 and sys.argv[2] == '--crate-name' and not sys.argv[3].startswith("suricata"):
|
||||
try:
|
||||
sys.argv.remove("-Cinstrument-coverage")
|
||||
except:
|
||||
pass
|
||||
result = subprocess.run(sys.argv[1:])
|
||||
sys.exit(result.returncode)
|
||||
Loading…
Reference in New Issue