2016-09-30 85 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將它修復到新的操作系統中嗎?

回答