commands: rename & export SPECOptions -> RunCPUOptions

This commit is contained in:
2024-06-18 03:20:09 +08:00
parent 43fc9c5a8c
commit 9ba01d318f

View File

@@ -1,6 +1,6 @@
import { optFlag, undefList } from "./common" import { optFlag, undefList } from "./common"
interface SPECOptions { export interface RunCPUOptions {
/** /**
* Config file, used for compiling flags, compiler versions, etc. * Config file, used for compiling flags, compiler versions, etc.
*/ */
@@ -51,7 +51,7 @@ interface SPECOptions {
| "text")[]; | "text")[];
} }
export function runcpuOptions(o: SPECOptions): string[] { export function runcpuOptions(o: RunCPUOptions): string[] {
return [ return [
...optFlag("-c", o.config), ...optFlag("-c", o.config),
...optFlag("-i", o.workload), ...optFlag("-i", o.workload),