diff options
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/LLVM.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/LLVM.cmake b/cmake/LLVM.cmake index d707d3605..0bbd5b133 100644 --- a/cmake/LLVM.cmake +++ b/cmake/LLVM.cmake @@ -92,6 +92,10 @@ function(fetch_or_build_slang_llvm) ) # If we don't include this, then the symbols in the LLVM linked here may # conflict with those of other LLVMs linked at runtime, for instance in mesa. + set_target_properties( + slang-llvm + PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN ON + ) add_supported_cxx_linker_flags( slang-llvm PRIVATE |
