From 9258f5e9c0188c633896c6544ca20c78858bf612 Mon Sep 17 00:00:00 2001 From: Pranjal Raihan Date: Tue, 14 Sep 2021 09:52:41 -0700 Subject: [PATCH] Fix typo in macro: FOLLY_HAVE_SDT Summary: `FOLLY_HAS_STD` and `FOLLY_HAVE_STD` are now `FOLLY_HAVE_SDT`. This typo reveals that the tests aren't run on platforms that don't have this feature enabled :/ Reviewed By: yfeldblum Differential Revision: D30780817 fbshipit-source-id: 338fdd5e5b08f3b5347609dd783f0a75506f9e30 --- folly/tracing/StaticTracepoint.h | 4 ++-- folly/tracing/test/StaticTracepointTest.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/folly/tracing/StaticTracepoint.h b/folly/tracing/StaticTracepoint.h index 1b4cb6f542c..33124c0283d 100644 --- a/folly/tracing/StaticTracepoint.h +++ b/folly/tracing/StaticTracepoint.h @@ -21,7 +21,7 @@ #if FOLLY_HAVE_ELF && (defined(__x86_64__) || defined(__i386__)) && \ !FOLLY_DISABLE_SDT -#define FOLLY_HAS_STD 1 +#define FOLLY_HAVE_SDT 1 #include @@ -38,7 +38,7 @@ #else -#define FOLLY_HAVE_STD 0 +#define FOLLY_HAVE_SDT 0 #define FOLLY_SDT(provider, name, ...) \ do { \ diff --git a/folly/tracing/test/StaticTracepointTest.cpp b/folly/tracing/test/StaticTracepointTest.cpp index e1a6c2bd869..272f64394dd 100644 --- a/folly/tracing/test/StaticTracepointTest.cpp +++ b/folly/tracing/test/StaticTracepointTest.cpp @@ -35,7 +35,7 @@ #include #include -#if FOLLY_HAS_STD +#if FOLLY_HAVE_SDT static const std::string kUSDTSubsectionName = FOLLY_SDT_NOTE_NAME; static const int kUSDTNoteType = FOLLY_SDT_NOTE_TYPE;