link atomic library automatic when compile on raspberrypi (#1405)

* 增加检测atomic源文件

* 支持树莓派编译,自动检测atomic链接库

* 精简cmake操作
This commit is contained in:
Dw9
2022-01-29 22:40:08 +08:00
committed by GitHub
parent c97aa8483e
commit 80a0e27d8c
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#include <atomic>
static int test()
{
std::atomic<long long> x;
return x;
}
int main()
{
return test();
}