Repository navigation
b12923
Pre-releaseapp : set distinct PDB_NAME for llama-app (#33156)
Overview
On Windows shared builds (BUILD_SHARED_LIBS=ON and LLAMA_BUILD_APP=ON),
both llama (llama.dll) and llama-app (OUTPUT_NAME llama, producing
llama.exe) write to CMAKE_RUNTIME_OUTPUT_DIRECTORY (bin/<Config>) with
the default linker PDB name llama.pdb. When llama.exe links after
llama.dll, MSVC link.exe updates llama.pdb in place (bumping its PDB
age from 1 to 2 and overwriting llama.dll's DBI/symbol streams), which
breaks symbol loading when debugging llama.dll.
Set PDB_NAME ${TARGET} on llama-app so llama.exe emits llama-app.pdb
while llama.dll keeps llama.pdb.
Additional information
Refs #23296
Validation on Windows x64 (VS 2022, MSVC 19.40):
cmake -S . -B build-pdb-check -G "Visual Studio 17 2022" -A x64 -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_OPENSSL=OFF(passed)cmake --build build-pdb-check --config Debug --target llama llama-app -j(passed)dumpbin /headersonllama.dllandllama.execonfirmed distinct RSDS GUIDs at age 1 (llama.pdbandllama-app.pdb), andllama.exe --versionpassed.
Requirements
- I have read and agree with the contributing guidelines
- AI usage disclosure: YES - used GitHub Copilot to inspect the PDB collision and update
app/CMakeLists.txt(please review and edit in your own words before submitting)
Assisted-by: GitHub Copilot
Website:
Attestations:
macOS/iOS:
- macOS Apple Silicon (arm64)
- macOS Apple Silicon (arm64, KleidiAI enabled) DISABLED
- macOS Intel (x64)
- iOS XCFramework
Linux:
- Ubuntu x64 (CPU)
- Ubuntu arm64 (CPU)
- Ubuntu 24.04 s390x (CPU)
- Ubuntu 26.04 s390x (CPU)
- Ubuntu 26.04 s390x (zDNN)
- Ubuntu x64 (Vulkan)
- Ubuntu arm64 (Vulkan)
- Ubuntu x64 (CUDA 12) - CUDA 12.8 libraries
- Ubuntu x64 (CUDA 13) - CUDA 13.5 libraries
- Ubuntu arm64 (CUDA 13) - CUDA 13.5 libraries
- Ubuntu x64 (ROCm 10.0)
- Ubuntu x64 (OpenVINO)
- Ubuntu x64 (SYCL FP32)
- Ubuntu x64 (SYCL FP16)
- Linux arm64 (Snapdragon: CPU, Adreno GPU, Hexagon NPU) - setup guide
Android:
Windows:
- Windows x64 (CPU)
- Windows arm64 (CPU)
- Windows arm64 (OpenCL Adreno)
- Windows x64 (CUDA 12) - CUDA 12.4 DLLs
- Windows x64 (CUDA 13) - CUDA 13.5 DLLs
- Windows arm64 (CUDA 13) - CUDA 13.5 DLLs
- Windows x64 (Vulkan)
- Windows arm64 (Vulkan)
- Windows x64 (OpenVINO)
- Windows x64 (SYCL)
- Windows x64 (ROCm 10.0)
openEuler:
- DISABLED
- openEuler x86 (310p)
- openEuler x86 (910b, ACL Graph)
- openEuler aarch64 (310p)
- openEuler aarch64 (910b, ACL Graph)
UI: