Skip to content

Commit

Permalink
Use declspec on Windows machines
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maurice committed Apr 11, 2024
1 parent e93e745 commit faf0c64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Firestore/core/src/util/string_format.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ static const char* kInvalid = "<invalid>";

// Disable asan for this function because of the way it manages stack
// (nested closure) is flaged with stack underflow by clang on Ubuntu.
#if defined(_MSC_VER)
__declspec(no_sanitize_address) std::string StringFormatPieces(
#else
__attribute__((no_sanitize_address)) std::string StringFormatPieces(
#endif
const char* format, std::initializer_list<absl::string_view> pieces) {
std::string result;

Expand Down

0 comments on commit faf0c64

Please sign in to comment.