From b303a676612b73f0cd8fd79ca1cec2218b98f367 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Feb 2026 06:34:14 +0000 Subject: [PATCH] Default local build working directory to repo-local build/ and install/ 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 --- README.md | 2 ++ scripts/Build-QuantLibDLL.ps1 | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c9970cc..c29ab38 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ Requirements: Visual Studio 2022 (C++ workload), CMake, 7-Zip. .\scripts\Build-QuantLibDLL.ps1 -PackageZip ``` +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-\` after the build. + With custom versions and install location: ```powershell diff --git a/scripts/Build-QuantLibDLL.ps1 b/scripts/Build-QuantLibDLL.ps1 index 52bf969..bbd8390 100644 --- a/scripts/Build-QuantLibDLL.ps1 +++ b/scripts/Build-QuantLibDLL.ps1 @@ -23,9 +23,11 @@ .PARAMETER InstallDir Where to install QuantLib (cmake --install prefix). + Default: install/ in the repository root. .PARAMETER TempDir - Temporary directory for source downloads and build artifacts. + Working directory for source downloads and build artifacts. + Default: build/ in the repository root so you can inspect patched sources. .PARAMETER Jobs Number of parallel build jobs. 0 = auto-detect (default). @@ -50,8 +52,8 @@ param( [string]$QuantLibVersion = "1.41", [string]$BoostVersion = "1.87.0", - [string]$InstallDir = "C:\quantlib-build\install", - [string]$TempDir = "$env:TEMP\quantlib-dll-build", + [string]$InstallDir = (Join-Path (Split-Path $PSScriptRoot) "install"), + [string]$TempDir = (Join-Path (Split-Path $PSScriptRoot) "build"), [int]$Jobs = 0, [switch]$BuildTests, [switch]$PackageZip,