[cmake] APIDigester, IDE: Specify Clang link dependencies

This way, CMake will propagate the interface compile definitions of the
Clang dependencies, which is important on Windows because Clang
visibility macro expansions, controlled by compile definitions, must
match between the Swift and Clang library.

See https://github.com/llvm/llvm-project/pull/108276/files#diff-4dd645a8b76bb3886a505258a8c2e598aeddea770e7b0a2b51689124a5ea6e9a.
This commit is contained in:
Anthony Latsis
2025-08-11 20:06:02 +01:00
parent 91b4fabca1
commit 26de61d826
4 changed files with 16 additions and 5 deletions

View File

@@ -3,6 +3,8 @@
#include "swift/Basic/Defer.h"
#include "swift/Parse/Lexer.h"
#include "swift/Sema/IDETypeChecking.h"
#include "clang/AST/DeclObjC.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/STLExtras.h"
#include <algorithm>
#include <swift/APIDigester/ModuleAnalyzerNodes.h>