From 9c3a581900beeadd4234a223d0c81988278a2002 Mon Sep 17 00:00:00 2001
From: Igor Sugak <sugak@fb.com>
Date: Tue, 24 Oct 2017 10:55:58 -0700
Subject: [PATCH] fix build with asan and static linking

Reviewed By: meyering

Differential Revision: D6117783

fbshipit-source-id: 048b056e119bf89ab88c33b1233297d197e8acb9
---
 folly/test/DynamicTest.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/folly/test/DynamicTest.cpp b/folly/test/DynamicTest.cpp
index fe34904d..407ed5fe 100644
--- a/folly/test/DynamicTest.cpp
+++ b/folly/test/DynamicTest.cpp
@@ -22,6 +22,7 @@
 
 using folly::dynamic;
 
+#ifndef FOLLY_SANITIZE_ADDRESS
 // This test runs without any external dependencies, including json.
 // This means that if there's a test failure, there's no way to print
 // a useful runtime representation of the folly::dynamic.  We will
@@ -30,6 +31,7 @@ using folly::dynamic;
 void dynamic::print_as_pseudo_json(std::ostream& out) const {
   out << "<folly::dynamic object of type " << type_ << ">";
 }
+#endif
 
 TEST(Dynamic, Default) {
   dynamic obj;
-- 
2.34.1