From 0919128391b9824b2b15ce329bb2933766e4b3df Mon Sep 17 00:00:00 2001 From: Yingchi Long Date: Thu, 20 Jun 2024 17:25:00 +0800 Subject: [PATCH] commands/spec: add outputRoot(--output_root) option --- src/commands/spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/commands/spec.ts b/src/commands/spec.ts index 2436467..41f223f 100644 --- a/src/commands/spec.ts +++ b/src/commands/spec.ts @@ -57,6 +57,14 @@ export interface RunCPUOptions { * Meaning: Attempt to create all processes in a single group. Improves the chances that ^C will get the whole run, not just one of the children. */ setprocgroup?: boolean; + + /** + * If set to a non-empty value, all output files will be rooted under the named directory, instead of under $SPEC (or %SPEC%). + * If directory is not an absolute path (one that begins with "/" on Unix, or a device name on Windows), the path will be created under $SPEC. + * + * This option can be useful for sharing an installation. + */ + outputRoot?: string; } export function runcpuOptions(o: RunCPUOptions): string[] { @@ -76,5 +84,6 @@ export function runcpuOptions(o: RunCPUOptions): string[] { ...undefList(o.benchmarks, bench => bench), ...undefList(o.outputFormat, of => ["--output_format", of.join(",")]), ...optSwitch("--setprocgroup", o.setprocgroup), + ...optFlag("--output_root", o.outputRoot), ]; }