Skip to content

Commit

Permalink
For #2689: Support stat for CPU archs.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Oct 24, 2021
1 parent 5b44cc6 commit 99904f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions trunk/src/app/srs_app_latest_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ 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";
#elif defined(__loongarch__)
ss << "&loong=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);
Expand Down

0 comments on commit 99904f9

Please sign in to comment.