Skip to content

Commit 76faaa7

Browse files
authored
Merge pull request shady-gang#33 from shady-gang/fix-windows-build
fix windows build
2 parents c721997 + 032d7f8 commit 76faaa7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ if (MSVC)
1616
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
1717
endif()
1818

19+
if (WIN32)
20+
set(BUILD_SHARED_LIBS OFF)
21+
endif()
22+
1923
add_subdirectory(SPIRV-Headers)
2024

2125
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24")

src/common/portability.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static_assert(__STDC_VERSION__ >= 201112L, "C11 support is required to build sha
2020
#define SHADY_FALLTHROUGH
2121
// It's mid 2022, and this typedef is missing from <stdalign.h>
2222
// MSVC is not a real C11 compiler.
23-
typedef long long max_align_t;
23+
typedef double max_align_t;
2424
#else
2525
#ifdef USE_VLAS
2626
#define LARRAY(T, name, size) T name[size]

0 commit comments

Comments
 (0)