[clang] [Cygwin] Value.h consider Cygwin (PR #75395)

εΎζŒζ’ Xu Chiheng via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 13 14:40:32 PST 2023


https://github.com/xu-chiheng created https://github.com/llvm/llvm-project/pull/75395

None

>From c3da4faacc108d7cdbc92f426571eab65482f8ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BE=90=E6=8C=81=E6=81=92=20Xu=20Chiheng?=
 <chiheng.xu at gmail.com>
Date: Thu, 14 Dec 2023 06:38:09 +0800
Subject: [PATCH] 1

---
 clang/include/clang/Interpreter/Value.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/Interpreter/Value.h b/clang/include/clang/Interpreter/Value.h
index c380cd91550def..f0b26dc3c89c40 100644
--- a/clang/include/clang/Interpreter/Value.h
+++ b/clang/include/clang/Interpreter/Value.h
@@ -52,7 +52,7 @@ class ASTContext;
 class Interpreter;
 class QualType;
 
-#if defined(_WIN32)
+#if defined(_WIN32) || defined(__CYGWIN__)
 // REPL_EXTERNAL_VISIBILITY are symbols that we need to be able to locate
 // at runtime. On Windows, this requires them to be exported from any of the
 // modules loaded at runtime. Marking them as dllexport achieves this; both



More information about the cfe-commits mailing list