2016-09-30 82 views
-1

我按照指令here在macOS Sierra上构建grpc。grpc C++在macOS上构建Sierra因为OSAtomicCompareAndSwap64Barrier而弃用

在化妆步骤中,我得到了一个错误说

OSAtomicCompareAndSwap64Barrier is deprecated: 

'OSAtomicCompareAndSwap64' is deprecated: first deprecated in OS X 10.12 
     - Use 
     std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) 
     from <atomic> instead [-Werror,-Wdeprecated-declarations] 
    if (OSAtomicCompareAndSwap64(old_value, new_value, 
     ^
/usr/include/libkern/OSAtomicDeprecated.h:628:9: note: 
     'OSAtomicCompareAndSwap64' has been explicitly marked deprecated here 
bool OSAtomicCompareAndSwap64(int64_t __oldValue, int64_t __newValue, 
     ^

我能做些什么来安装呢?我应该等待grpc将它修复到新的操作系统中吗?

回答