!40671 fix mac cannot write log to files

Merge pull request !40671 from huanghui/fix-mac-glog
This commit is contained in:
i-robot 2022-08-23 07:10:55 +00:00 committed by Gitee
commit 60b70dae1a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ MS_CORE_API void mindspore_log_init(void) {
#define google mindspore_private
static bool is_glog_initialzed = false;
if (!is_glog_initialzed) {
#if !defined(_WIN32) && !defined(_WIN64) && !defined(__APPLE__)
#if !defined(_WIN32) && !defined(_WIN64)
google::InitGoogleLogging("mindspore");
#endif
is_glog_initialzed = true;