spec: need configuration for "sysroot"
This commit is contained in:
@@ -63,13 +63,15 @@ export interface ConfigOptions {
|
||||
gccdir: string;
|
||||
optimize: string[];
|
||||
ldflags: string[];
|
||||
sysroot: string;
|
||||
}
|
||||
|
||||
export function renderConfig(options: ConfigOptions) {
|
||||
return `# Rendered from TypeScript ${new Date().toLocaleString()}, do not edit!\n\n\n` + specTemplate
|
||||
.replace("@@GCCDIR@@", options.gccdir)
|
||||
.replace("@@OPTIMIZE@@", options.optimize.join(' '))
|
||||
.replace("@@LDFLAGS@@", options.ldflags.join(' '));
|
||||
.replace("@@LDFLAGS@@", options.ldflags.join(' '))
|
||||
.replace("@@SYSROOT@@", options.sysroot);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user