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