From 4098f55d707c832a465727b2ee08cde73fed786f Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 25 Oct 2019 10:21:30 +0200 Subject: [PATCH] dtoolutil: record stdlib (libc++ vs libstdc++) in PandaSystem This is particularly relevant on macOS, for finding out which stdlib Panda was compiled with. --- dtool/src/dtoolutil/pandaSystem.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dtool/src/dtoolutil/pandaSystem.cxx b/dtool/src/dtoolutil/pandaSystem.cxx index 3d80d0f6b5..667d08b8d9 100644 --- a/dtool/src/dtoolutil/pandaSystem.cxx +++ b/dtool/src/dtoolutil/pandaSystem.cxx @@ -61,6 +61,12 @@ PandaSystem() : #else set_system_tag("system", "malloc", "malloc"); #endif + +#ifdef _LIBCPP_VERSION + set_system_tag("system", "stdlib", "libc++"); +#elif defined(__GLIBCXX__) + set_system_tag("system", "stdlib", "libstdc++"); +#endif } /**