Skip to content

Commit 67e7486

Browse files
fumitohclaude
andauthored
Default local build working directory to repo-local build/ and install/ (#4)
Change TempDir default from $env:TEMP to build/ in the repo root, and InstallDir from C:\quantlib-build\install to install/ in the repo root. This lets you inspect patched QuantLib sources after a local build. CI is unaffected since the workflow passes explicit paths. https://claude.ai/code/session_01EVB6yo51Ug6uCWAPSfUgwz Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6375cae commit 67e7486

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Requirements: Visual Studio 2022 (C++ workload), CMake, 7-Zip.
3434
.\scripts\Build-QuantLibDLL.ps1 -PackageZip
3535
```
3636

37+
By default the working directory is `build/` and the install directory is `install/` inside the repo, so you can inspect the patched QuantLib sources at `build\QuantLib-<version>\` after the build.
38+
3739
With custom versions and install location:
3840

3941
```powershell

scripts/Build-QuantLibDLL.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
2424
.PARAMETER InstallDir
2525
Where to install QuantLib (cmake --install prefix).
26+
Default: install/ in the repository root.
2627
2728
.PARAMETER TempDir
28-
Temporary directory for source downloads and build artifacts.
29+
Working directory for source downloads and build artifacts.
30+
Default: build/ in the repository root so you can inspect patched sources.
2931
3032
.PARAMETER Jobs
3133
Number of parallel build jobs. 0 = auto-detect (default).
@@ -50,8 +52,8 @@
5052
param(
5153
[string]$QuantLibVersion = "1.41",
5254
[string]$BoostVersion = "1.87.0",
53-
[string]$InstallDir = "C:\quantlib-build\install",
54-
[string]$TempDir = "$env:TEMP\quantlib-dll-build",
55+
[string]$InstallDir = (Join-Path (Split-Path $PSScriptRoot) "install"),
56+
[string]$TempDir = (Join-Path (Split-Path $PSScriptRoot) "build"),
5557
[int]$Jobs = 0,
5658
[switch]$BuildTests,
5759
[switch]$PackageZip,

0 commit comments

Comments
 (0)