mirror of
https://github.com/stablyai/orca.git
synced 2026-10-07 16:02:29 +00:00
Default Windows native rebuilds to TrackFileAccess=false while preserving explicit caller preferences. Co-authored-by: B1nh M1nh <43268322+b1nhm1nh@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Neil <neil@stably.ai>
15 lines
476 B
JavaScript
15 lines
476 B
JavaScript
// FileTracker's long-path-unsafe .tlog files serve incremental builds; these rebuilds are forced.
|
|
export function disableMsbuildFileTrackingOnWindows(
|
|
env = process.env,
|
|
platform = process.platform
|
|
) {
|
|
// Windows environment keys are case-insensitive, including caller overrides in copied objects.
|
|
if (
|
|
platform === 'win32' &&
|
|
!Object.keys(env).some((key) => key.toLowerCase() === 'trackfileaccess')
|
|
) {
|
|
env.TrackFileAccess = 'false'
|
|
}
|
|
return env
|
|
}
|