Explicitly export symbols from libSPVRemapper
Windows requires symbols to be explicitly exported from DLLs, this change simply marks the entire spirvbin_t class as exported. The macros from visibility.h are included inline to get around include path issues.
This commit is contained in:
parent
d7d5ab8f8a
commit
36ccaa31bd
2 changed files with 17 additions and 1 deletions
|
|
@ -100,6 +100,7 @@ if (ENABLE_SPVREMAPPER)
|
|||
POSITION_INDEPENDENT_CODE ON
|
||||
VERSION "${GLSLANG_VERSION}"
|
||||
SOVERSION "${GLSLANG_VERSION_MAJOR}")
|
||||
glslang_only_export_explicit_symbols(SPVRemapper)
|
||||
endif()
|
||||
|
||||
if(WIN32 AND BUILD_SHARED_LIBS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue