cpubench: don't need to specify --sysroot on 8A (draft version)

This commit is contained in:
2025-02-26 19:39:26 +08:00
parent 00d57ff13b
commit 621ae0e7fb
3 changed files with 5 additions and 14 deletions

View File

@@ -4,14 +4,12 @@ import cpuBenchTemplate from '../../assets/CPUBenchTemplate.ini';
export interface CPUBenchConfigOptions {
llvmInstall: string;
optimize: string[];
sysroot: string;
benchmarks: string[];
}
export function renderConfig({ llvmInstall, optimize, sysroot, benchmarks }: CPUBenchConfigOptions) {
export function renderConfig({ llvmInstall, optimize, benchmarks }: CPUBenchConfigOptions) {
return `# Rendered from TypeScript ${new Date().toLocaleString()}, do not edit!\n` + cpuBenchTemplate
.replace('@@LLVM_INSTALL@@', llvmInstall)
.replace('@@OPTIMIZE@@', optimize.join(' '))
.replace('@@SYSROOT@@', sysroot)
.replace('@@BENCHMARKS@@', benchmarks.join(','));
}