Skip to content

Commit 94e71a1

Browse files
committed
handle cmake search path
and provide build info about which symlinks are active
1 parent c9cb5b5 commit 94e71a1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

build/build.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ await rsync(config.path.yaml.parent(), config.path.build.join("props"))
8383
/// create toolchain if necessary
8484
const toolchain_PATH = make_toolchain()
8585

86+
if (toolchain_PATH) {
87+
await gum('toolchain')
88+
const d = config.path.home.join('toolchain')
89+
if (d.isDirectory()) {
90+
for await (const [path, { isSymlink }] of d.ls()) {
91+
if (isSymlink) {
92+
const target = Deno.readLinkSync(path.string)
93+
console.log(` ${path.basename()}${target}`)
94+
}
95+
}
96+
}
97+
}
98+
8699
/// write script
87100
const script_content = await make_build_script(config, toolchain_PATH)
88101
const script = new Path(`${config.path.build}.sh`)

lib/porcelain/build-script.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default async function(config: Config, PATH?: Path): Promise<string> {
6060
${env_plus ? `eval "$(CLICOLOR_FORCE=1 ${pkgx} ${env_plus})"` : ''}
6161
set +a
6262
export PATH="${brewkit_PATHs}:$PATH"
63+
${PATH ? `export CMAKE_PREFIX_PATH="${PATH.parent()}\${CMAKE_PREFIX_PATH:+:\$CMAKE_PREFIX_PATH}"` : ''}
6364
6465
export PKGX="${pkgx}"
6566
export HOME=${config.path.home.string}

0 commit comments

Comments
 (0)