From adc184ccab5a4ace55c72c58f87c66e0fd7c5634 Mon Sep 17 00:00:00 2001 From: ZhouGuangyuan Date: Fri, 28 Aug 2026 17:44:43 +0800 Subject: [PATCH] cpp/llvm: select LLVM 21 on Windows --- cpp/llvm/config_windows.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/llvm/config_windows.go b/cpp/llvm/config_windows.go index ac90442..21c1fcd 100644 --- a/cpp/llvm/config_windows.go +++ b/cpp/llvm/config_windows.go @@ -23,8 +23,8 @@ const ( // the bridge for the ABI selected by its host clang++, then expose only C // functions to the LLGo target. This avoids leaking that C++ ABI across the // package boundary while retaining the target's native C ABI. - LLGoFiles = "$(pkg-config --cflags llvm-19) -std=c++17 --target=$(llvm-config --host-target): _wrap/demangle_windows.cpp" - // The llvm-19 package preserves LLVM's library order and required Windows + LLGoFiles = "$(pkg-config --cflags llvm-21) -std=c++17 --target=$(llvm-config --host-target): _wrap/demangle_windows.cpp" + // The llvm-21 package preserves LLVM's library order and required Windows // system libraries. - LLGoPackage = "link: $(pkg-config --libs llvm-19)" + LLGoPackage = "link: $(pkg-config --libs llvm-21)" )