From a72df0123655502791bc84ce1abefd6af0723f70 Mon Sep 17 00:00:00 2001 From: Mingxin Wang Date: Wed, 16 Oct 2024 21:40:03 +0800 Subject: [PATCH 1/2] Force enable EBO on MSBuild when building with clang --- proxy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy.h b/proxy.h index f54b1399..a95e338b 100644 --- a/proxy.h +++ b/proxy.h @@ -23,11 +23,11 @@ #error "Proxy requires C++20 attribute no_unique_address" #endif -#if defined(_MSC_VER) && !defined(__clang__) +#if defined(_MSC_VER) #define ___PRO_ENFORCE_EBO __declspec(empty_bases) #else #define ___PRO_ENFORCE_EBO -#endif // defined(_MSC_VER) && !defined(__clang__) +#endif // defined(_MSC_VER) #define __msft_lib_proxy 202410L From 6ad0161379762f39d114481ced385a361fd924be Mon Sep 17 00:00:00 2001 From: Mingxin Wang Date: Thu, 17 Oct 2024 09:47:11 +0800 Subject: [PATCH 2/2] Refactor --- proxy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy.h b/proxy.h index a95e338b..97b77c10 100644 --- a/proxy.h +++ b/proxy.h @@ -23,11 +23,11 @@ #error "Proxy requires C++20 attribute no_unique_address" #endif -#if defined(_MSC_VER) +#ifdef _MSC_VER #define ___PRO_ENFORCE_EBO __declspec(empty_bases) #else #define ___PRO_ENFORCE_EBO -#endif // defined(_MSC_VER) +#endif // _MSC_VER #define __msft_lib_proxy 202410L