Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 4669c3d

Browse files
authored
Merge pull request #84 from spacemeshos/fix_linux
Fixing linux build
2 parents 5720f29 + 653955b commit 4669c3d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ endif ()
1212

1313
if (APPLE)
1414
option(SPACEMESHCUDA "Build with CUDA support" OFF)
15+
16+
# we should check here for ARM / Intel too
17+
add_compile_definitions(SPACEMESH_VULKAN_COMPATIBILITY_NEEDED=1)
1518
else()
1619
option(SPACEMESHCUDA "Build with CUDA support" ON)
1720
endif()

src/vulkan/driver-vulkan.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static int vulkan_detect(struct cgpu_info *gpus, int *active)
266266
VK_API_VERSION_1_2
267267
};
268268

269-
#ifdef VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME
269+
#ifdef SPACEMESH_VULKAN_COMPATIBILITY_NEEDED
270270
const char* const extensions[1] = { VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME };
271271

272272
const VkInstanceCreateInfo instanceCreateInfo = {

0 commit comments

Comments
 (0)