--features=windows_export_all_symbols does not export all symbols #11622
Labels
area-Windows
Windows-specific issues and feature requests
team-Rules-CPP
Issues for C++ rules
type: support / not a bug (process)
Description of the problem / feature request:
--features=windows_export_all_symbols
does not export all symbols (extern
variable )Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
Windows 10
What's the output of
bazel info release
?3.3
Have you found anything relevant by searching the web?
I I had a look at this file https://github.com/bazelbuild/bazel/blob/master/third_party/def_parser/def_parser.cc
I think those lines cause the bug
bazel/third_party/def_parser/def_parser.cc
Lines 257 to 262 in 1dbf65b
Because
IMAGE_SCN_MEM_READ
variable is not inserted to the TableSymbolBeside, I found something https://stackoverflow.com/questions/19373061/what-happens-to-global-and-static-variables-in-a-shared-library-when-it-is-dynam which say that the
extern
global variables are not part of the exported symbols ( but__declspec(dllexport)
can export it ? )Any other information, logs, or outputs that you want to share?
If this is a bug, I am very happy to contribute to fix this bug
The text was updated successfully, but these errors were encountered: