Skip to content

Commit

Permalink
Force enable EBO on MSBuild when building with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxwa committed Oct 16, 2024
1 parent 2d776ea commit a72df01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a72df01

Please sign in to comment.