Add symbol visibility annotations to symbols in SPIRV/

Symbols in the SPIRV/ directory that are meant to be part of the public
API of glslangnow have GLSLANG_EXPORT annotations that make sure they
will be accessible when building glslang as a shared library if
-fvisibility=hidden is enabled.
This commit is contained in:
Arcady Goldmints-Orlov 2024-08-23 19:12:45 -04:00 committed by arcady-lunarg
parent 9cd7ca26a2
commit b1fac200c4
4 changed files with 35 additions and 28 deletions

View file

@ -37,6 +37,7 @@
#include <string>
#include <vector>
#include "glslang/Include/visibility.h"
namespace spv {
@ -58,7 +59,7 @@ public:
// Returns all messages accumulated in the order of:
// TBD functionalities, missing functionalities, warnings, errors.
std::string getAllMessages() const;
GLSLANG_EXPORT std::string getAllMessages() const;
private:
SpvBuildLogger(const SpvBuildLogger&);