mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
优化cpu类型判断宏
This commit is contained in:
parent
46ba4894db
commit
96e1cf8146
@ -74,19 +74,19 @@ static std::string httpBody() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
auto &arch = args["arch"];
|
auto &arch = args["arch"];
|
||||||
#if defined(__i386__)
|
#if defined(__x86_64__) || defined(__amd64__)
|
||||||
arch = "x86";
|
|
||||||
#elif defined(__x86_64__) || defined(__amd64__)
|
|
||||||
arch = "x86_64";
|
arch = "x86_64";
|
||||||
|
#elif defined(__x86__) || defined(__X86__) || defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__)
|
||||||
|
arch = "x86";
|
||||||
|
#elif defined(__arm64__) || defined(__aarch64__)
|
||||||
|
arch = "arm64";
|
||||||
#elif defined(__arm__)
|
#elif defined(__arm__)
|
||||||
arch = "arm";
|
arch = "arm";
|
||||||
#elif defined(__arm64__)
|
|
||||||
arch = "arm64";
|
|
||||||
#elif defined(__loognarch__)
|
#elif defined(__loognarch__)
|
||||||
arch = "loognarch";
|
arch = "loognarch";
|
||||||
#elif defined(__riscv)
|
#elif defined(__riscv) || defined(__riscv__)
|
||||||
arch = "riscv";
|
arch = "riscv";
|
||||||
#elif defined(__mipsl__)
|
#elif defined(__mipsl__) || defined(__mips__)
|
||||||
arch = "mipsl";
|
arch = "mipsl";
|
||||||
#else
|
#else
|
||||||
arch = "unknow";
|
arch = "unknow";
|
||||||
|
Loading…
Reference in New Issue
Block a user