-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename GOOGLE_GLOG_DLL_DECL
to GLOG_EXPORT
#764
Conversation
Codecov Report
@@ Coverage Diff @@
## master #764 +/- ##
=======================================
Coverage 72.78% 72.78%
=======================================
Files 17 17
Lines 3259 3259
=======================================
Hits 2372 2372
Misses 887 887
Continue to review full report at Codecov.
|
I'm aware that IIUC you are asking if there is something that affects targets that depend on glog but not glog actions themselves. If so, I'm not aware of anything. You could see if |
I'd like to avoid defining export macros in headers. Would it be possible to define Also, I'm wondering why the Bazel build succeeds in the first place as there's no |
I'm afraid I know very little about how the Windows build works, and I don't understand the effect of the dll* strings.
I tried the following:
This led to the following command line:
So I think that pattern should work if you want to use different settings for the two actions. |
363fa40
to
7d70137
Compare
@drigz Does Bazel always build a static library of glog? I'm asking because building the Bazel glog example from current master produces several linker errors on Windows related to gflags if I add |
That's surprising to me, but I know very little about the behavior on Windows. For cc_test, I'd expect dynamic linking by default (IIRC it does this for faster incremental build/test cycles) whereas cc_binary is mostly-static by default (ie gflags linked statically, libc linked dynamically). I checked this on Linux and it seems to be correct: building a cc_test uses something like If this is blocking you, send me a repro and I can take a look, it might also be worth trying the bazel-discuss mailing list. |
e720ed4
to
efcd2f7
Compare
@drigz For some reason, AppVeyor builds are active again and cause failing checks. I guess, these should be removed completely. |
I don't know the "right way" to disable AppVeyor. I ticked a box "Skip branches without appveyor.yml" which will hopefully do the trick. |
Unfortunately, that did not help. |
It seems that I don't have access to the top-level project: I can't change settings at https://ci.appveyor.com/project/google-admin/glog. IIRC I "added" glog to my AppVeyor account when trying to address your last request: I've deleted that, which might put us back where we were before. I'll see if I can find out anything more useful. |
@drigz Any updates? |
No response, just tried a different list so we'll see if that helps. I also spotted the failed checks on this project are from @ukai's project, so maybe they can disable that. If this doesn't work, we could try to figure out how the checks get started: there's no webhook enabled on this repo, but maybe there's a webhook or polling enabled at some other level... |
Thanks for the update! |
@drigz Seems to be working again. I would merge this PR as is. PTAL and let me know if you have any concerns. |
Use a consistent naming and avoid platform specific terms. Also remove copy and paste code.
Use a consistent naming and avoid platform specific terms. Also remove copy and paste code.
@drigz Is there a way to define
GLOG_EXPORT=__declspec(dllimport)
for Windows builds only when glog is being used (as opposed to being compiled)?