BUCK: define GLOG_NO_ABBREVIATED_SEVERITIES everywhere

Summary:
This is only defined on Windows, and thus code that compiles on all platforms
may successfully build on Linux/macOS, but not on Windows, making it
potentially harder to detect and debug. Let's unify all platforms to solve
this.

Changelog: [Internal]

Reviewed By: chadaustin

Differential Revision: D34648154

fbshipit-source-id: b2549bb3eb120e6207cab8baaafced8b1b18e6a7
This commit is contained in:
Xavier Deguillard 2022-03-08 12:35:48 -08:00 коммит произвёл Facebook GitHub Bot
Родитель c8067f1ffd
Коммит ece1dd4ed9
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -55,7 +55,7 @@ void react_native_assert_fail(
#define react_native_assert(cond) \ #define react_native_assert(cond) \
if (!(cond)) { \ if (!(cond)) { \
LOG(ERROR) << "react_native_assert failure: " << #cond; \ LOG(ERROR) << "react_native_assert failure: " << #cond; \
google::FlushLogFiles(google::INFO); \ google::FlushLogFiles(google::GLOG_INFO); \
assert(cond); \ assert(cond); \
} }

Просмотреть файл

@ -250,7 +250,7 @@ void StubViewTree::mutate(ShadowViewMutationList const &mutations) {
// For iOS especially: flush logs because some might be lost on iOS if an // For iOS especially: flush logs because some might be lost on iOS if an
// assert is hit right after this. // assert is hit right after this.
google::FlushLogFiles(google::INFO); google::FlushLogFiles(google::GLOG_INFO);
} }
bool operator==(StubViewTree const &lhs, StubViewTree const &rhs) { bool operator==(StubViewTree const &lhs, StubViewTree const &rhs) {