How to verify at runtime that architecture matches -march=?

前端 未结 0 1548
旧巷少年郎
旧巷少年郎 2021-02-04 07:58

We compile our code with g++ -march=ivybridge -mtune=skylake. In case somebody runs on older/incompatible architecture I want app to inform and exit gracefully. How

相关标签:
回答
  • 消灭零回复
提交回复
热议问题