Browse Source

dtoolutil: record stdlib (libc++ vs libstdc++) in PandaSystem

This is particularly relevant on macOS, for finding out which stdlib Panda was compiled with.
rdb 6 years ago
parent
commit
4098f55d70
1 changed files with 6 additions and 0 deletions
  1. 6 0
      dtool/src/dtoolutil/pandaSystem.cxx

+ 6 - 0
dtool/src/dtoolutil/pandaSystem.cxx

@@ -61,6 +61,12 @@ PandaSystem() :
 #else
 #else
   set_system_tag("system", "malloc", "malloc");
   set_system_tag("system", "malloc", "malloc");
 #endif
 #endif
+
+#ifdef _LIBCPP_VERSION
+  set_system_tag("system", "stdlib", "libc++");
+#elif defined(__GLIBCXX__)
+  set_system_tag("system", "stdlib", "libstdc++");
+#endif
 }
 }
 
 
 /**
 /**