spec: allow extraFlags
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user