spec: allow extraFlags

This commit is contained in:
2025-08-12 21:09:03 +08:00
parent 637c12192e
commit 60619281e4

View File

@@ -256,6 +256,7 @@ interface SPECRunOptions {
spec: string;
output: string;
platform?: '8a' | '6b' | 'host';
extraFlags?: string[];
benchmarks?: string[];
action?: 'build' | 'buildstep' | 'validate' | 'runsetup';
buildType?: 'nobuild' | 'rebuild';
@@ -274,6 +275,7 @@ export async function runSPEC({
benchmarks = ['intspeed', 'fpspeed'],
action = 'validate',
buildType = 'rebuild',
extraFlags,
simd
}: SPECRunOptions) {
// Determine platform configuration
@@ -309,6 +311,10 @@ export async function runSPEC({
// Select optimizations based on profile
const optimizeFlags = optimizeProfiles[optimizeProfile as keyof typeof optimizeProfiles];
if (extraFlags) {
optimizeFlags.push(...extraFlags);
}
// Create SPEC process runner
const specInstance = mkSPEC(path.resolve(spec));