#include#include int main() { Triple t = Triple::getOS(); std::cout << "Operating System: " << t.getOSName() << std::endl; return 0; }
#include#include int main() { Triple t = Triple::getOS(); std::cout << "Operating System Version: " << t.getOSVersion() << std::endl; return 0; }
#includeThis code example displays the architecture of the operating system (e.g. "x86_64", "armv7l") on the console. Package Library: LLVM Triple Library#include int main() { Triple t = Triple::getOS(); std::cout << "Operating System Architecture: " << t.getArchName() << std::endl; return 0; }