Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ export class Kernel {
}
})

const { env, preload, licence } = self.config
await self.#client.boot(entry.sysroot, toEnv(env), preload, licence)
const { env, licence } = self.config
const precompile = self.config.precompile ?? self.config.preload ?? []
await self.#client.boot(entry.sysroot, toEnv(env), precompile, licence)

// The sysroot carries the language's tools but not the runner itself, so
// /opt/test-runner is untarred on top of it. Part of boot rather than of a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface KernelClient {
boot(
sysroot: string,
env: string[],
preload: string[],
precompile: string[],
licence?: Licence[]
): Request<void>
untar(path: string, data: ArrayBuffer): Request<void>
Expand All @@ -62,6 +62,8 @@ export type KernelClientConstructor = new (options: {
/** The kernel's boot.json, served beside sysroot.tar. */
export type BootConfig = {
env: Record<string, string>
preload: string[]
precompile?: string[]
// The old name for precompile. Remove once every boot.json uses precompile.
preload?: string[]
licence?: Licence[]
}
Loading