build/llvmPackages: use projectRoot to find git diff file in assets

This commit is contained in:
2024-06-22 13:59:53 +08:00
parent b899bf077f
commit 21913c7033

View File

@@ -1,6 +1,6 @@
import path from "path";
import { GeneralVariable, LLVMVariable, command, variable } from "lyc/commands/cmake";
import { SYSROOT_PREFIX } from "lyc/environment";
import { SYSROOT_PREFIX, projectRoot } from "lyc/environment";
import { PackageTask, buildPackage } from "./build";
import { checkedSpawnSync } from "lyc/cli";
import os from "os";
@@ -56,7 +56,7 @@ export function llvmPackages(src: string, installPrefix: string): PackageTask[]
checkedSpawnSync("git",
[
"apply",
path.resolve(__dirname, "..", "..", "assets", "omp.diff"),
path.resolve(projectRoot, "assets", "omp.diff"),
], spawnOptions);
},
configurePhase: () => {