mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
wrapper: Get rid of __builtin_readcyclecounter()
Crashes on some ARM machines
This commit is contained in:
parent
bee9df60f1
commit
952985fee3
@ -31,11 +31,7 @@ int sw_vers(int argc, char **argv, Target &target) {
|
||||
auto genFakeBuildVer = [](std::string & build)->std::string & {
|
||||
std::stringstream tmp;
|
||||
|
||||
#if __has_builtin(__builtin_readcyclecounter)
|
||||
srand(static_cast<unsigned int>(__builtin_readcyclecounter()));
|
||||
#else
|
||||
srand(static_cast<unsigned int>(getNanoSeconds()));
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < 5; ++i)
|
||||
tmp << std::hex << (rand() % 16 + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user