| 39 | } |
| 40 | |
| 41 | const char* GetBuildIDString() { |
| 42 | static bool init = false; |
| 43 | static std::string buf; |
| 44 | |
| 45 | if (phoenix_build_id == -1) |
| 46 | return "none"; |
| 47 | |
| 48 | if (!init) { |
| 49 | std::stringstream ss; |
| 50 | ss << "build-" << phoenix_build_id; |
| 51 | buf = ss.str(); |
| 52 | init = true; |
| 53 | } |
| 54 | |
| 55 | return buf.c_str(); |
| 56 | } |
| 57 | |
| 58 | const char* GetPlatform() { |
| 59 | return phoenix_platform; |