1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 03:41:55 +00:00

For #2689: Support stat for CPU archs.

This commit is contained in:
winlin 2021-10-24 18:23:03 +08:00
parent 592d4964ef
commit 5783c4420f
2 changed files with 9 additions and 1 deletions

View file

@ -55,6 +55,14 @@ void srs_build_features(stringstream& ss)
ss << "&os=linux";
}
#if defined(__amd64__) && defined(__x86_64__) && defined(__i386__)
ss << "&x86=1";
#elif defined(__arm__) && defined(__aarch64__)
ss << "&arm=1";
#elif defined(__mips__)
ss << "&mips=1";
#endif
SRS_CHECK_FEATURE2(_srs_in_docker, "docker", ss);
SRS_CHECK_FEATURE3(!string(SRS_PACKAGER).empty(), "packager", SRS_PACKAGER, ss);
SRS_CHECK_FEATURE2(SRS_CROSSBUILD_BOOL, "cross", ss);

View file

@ -9,6 +9,6 @@
#define VERSION_MAJOR 4
#define VERSION_MINOR 0
#define VERSION_REVISION 183
#define VERSION_REVISION 184
#endif