summaryrefslogtreecommitdiff
path: root/src/stdexcept.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdexcept.cpp')
-rw-r--r--src/stdexcept.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stdexcept.cpp b/src/stdexcept.cpp
index b516b0ca68b3..9fa4f593137a 100644
--- a/src/stdexcept.cpp
+++ b/src/stdexcept.cpp
@@ -15,7 +15,11 @@
#include <cstdint>
#include <cstddef>
#include "system_error"
+
+// Use <cxxabi.h> to determine whether we're linking against libc++abi.
+#if __has_include(<cxxabi.h>)
#include <cxxabi.h>
+#endif
// Note: optimize for size