You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature requests: what underlying problem are you trying to solve with this feature?
Build system should define as little flags as possible so that it does not conflict with existing projects.
Potential Risk
As far as I know, Google projects are the only projects that use this macro. Most Google projects open-sourced before Bazel either use _MSC_VER directly or define COMPILER_MSVC in header file (which will cause macro redefinition warning if you use Bazel). The usage of this macro in Tensorflow was removed in tensorflow/tensorflow#18448.
Update third_party/protobuf from 3.4.0 to 3.6.0 (released this week with many MSVC fixes, including removing some COMPILER_MSVC). Best left this for the Bazel team.
@meteorcloudy Is it OK for external contributor to update third_party/protobuf? The folder has a README file detailing how to update protobuf for Bazel, so this should be fairly simple.
As a side question, is there any reason/benefit for not building Protobuf Java from source when bootstrapping Bazel?
@meteorcloudyprotobuf 3.6.0 was released 12 days ago after 3.6.0rc1 and 3.6.0rc2. See the updated changelog (the changelog was only updated in 3.6.x branch, not merged back to master branch yet for some reason).
protobuf 3.6.0.1 was also released 10 days ago with some minor fixes.
Activity
meteorcloudy commentedon Jun 8, 2018
@rongjiecomputer Thanks for this suggestion, we'll remove
COMPILER_MSVConce no one depends on it.rongjiecomputer commentedon Jun 18, 2018
@meteorcloudy Is it OK for external contributor to update
third_party/protobuf? The folder has a README file detailing how to update protobuf for Bazel, so this should be fairly simple.As a side question, is there any reason/benefit for not building Protobuf Java from source when bootstrapping Bazel?
meteorcloudy commentedon Jun 18, 2018
@buchgr Can you help answer the above questions?
meteorcloudy commentedon Jun 18, 2018
@rongjiecomputer BTW, protobuf 3.6 hasn't been released yet, right? So we might want to wait for the official release.
rongjiecomputer commentedon Jun 18, 2018
@meteorcloudy protobuf 3.6.0 was released 12 days ago after 3.6.0rc1 and 3.6.0rc2. See the updated changelog (the changelog was only updated in 3.6.x branch, not merged back to master branch yet for some reason).
protobuf 3.6.0.1 was also released 10 days ago with some minor fixes.
meteorcloudy commentedon Jun 20, 2018
They just had a complete release today. https://github.com/google/protobuf/releases/tag/v3.6.0 \o/
@buchgr Can we update protobuf version to 3.6? Is it OK for external contributor to do that?
buchgr commentedon Jun 20, 2018
absolutely, if you get stuck just ping me! looking forward to the new protobuf :-)
aiuto commentedon Jun 8, 2020
We updated protobuf beyond this a long time ago. I'm trying a PR to remove the defines.
Stop testing on COMPILER_MSVC. The correct choice is _WIN32.
aiuto commentedon Oct 6, 2021
Fixed by protobuf update and 121f6c7
Remove COMPILER_MSVC define