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

Commit

Permalink
Merge pull request #84 from spacemeshos/fix_linux
Browse files Browse the repository at this point in the history
Fixing linux build
  • Loading branch information
pigmej authored Dec 7, 2022
2 parents 5720f29 + 653955b commit 4669c3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ endif ()

if (APPLE)
option(SPACEMESHCUDA "Build with CUDA support" OFF)

# we should check here for ARM / Intel too
add_compile_definitions(SPACEMESH_VULKAN_COMPATIBILITY_NEEDED=1)
else()
option(SPACEMESHCUDA "Build with CUDA support" ON)
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/vulkan/driver-vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static int vulkan_detect(struct cgpu_info *gpus, int *active)
VK_API_VERSION_1_2
};

#ifdef VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME
#ifdef SPACEMESH_VULKAN_COMPATIBILITY_NEEDED
const char* const extensions[1] = { VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME };

const VkInstanceCreateInfo instanceCreateInfo = {
Expand Down

0 comments on commit 4669c3d

Please sign in to comment.