llvm-project
35452443 - [cmake] Refactor DIA SDK detection into FindDIASDK module (#160354)

Commit
28 days ago
[cmake] Refactor DIA SDK detection into FindDIASDK module (#160354) This consolidates the DIA SDK detection logic from `{llvm,compiler-rt}/cmake/config-ix.cmake` into a new centralized, reusable `FindDIASDK.cmake` module. In addition to code deduplication, it also helps to avoid hard-coded references to the DIA SDK location in `LLVMExports.cmake`, hence allowing a pre-built LLVM distribution for Windows to be used on another host without requiring the DIA SDK location to be the same. Fixes https://github.com/llvm/llvm-project/issues/86250. Fixes https://github.com/llvm/llvm-project/issues/100372. Fixes https://github.com/llvm/llvm-project/issues/111829. Fixes https://github.com/llvm/llvm-project/issues/152268. --------- Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
Author
Parents
Loading