diff --git a/src/igl/vulkan/VulkanContext.cpp b/src/igl/vulkan/VulkanContext.cpp index 0defe94f00..cf8dd2455b 100644 --- a/src/igl/vulkan/VulkanContext.cpp +++ b/src/igl/vulkan/VulkanContext.cpp @@ -18,7 +18,8 @@ // For volk.h, define this before including volk.h in exactly one CPP file. // @fb-only -#if defined(IGL_CMAKE_BUILD) +#if defined(IGL_CMAKE_BUILD) || defined(VOLK_HEADER_ONLY) +#define VOLK_DEFAULT_VISIBILITY #define VOLK_IMPLEMENTATION #endif // IGL_CMAKE_BUILD diff --git a/src/igl/vulkan/VulkanHelpers.c b/src/igl/vulkan/VulkanHelpers.c index c8305c9291..82eaa7b9ac 100644 --- a/src/igl/vulkan/VulkanHelpers.c +++ b/src/igl/vulkan/VulkanHelpers.c @@ -10,10 +10,6 @@ #include #endif -#if defined(VOLK_HEADER_ONLY) -#define VOLK_IMPLEMENTATION -#endif - #include "VulkanHelpers.h" #include