Skip to content

Commit

Permalink
Allow it to build on 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed Jan 31, 2020
1 parent e6d2511 commit d4abf9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cmake/SfizzConfig.cmake
Expand Up @@ -28,6 +28,11 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
add_compile_options(/Zc:__cplusplus)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^i.86$")
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
add_compile_options(-msse2)
endif()
endif()

add_library(sfizz-sndfile INTERFACE)

Expand Down
3 changes: 2 additions & 1 deletion src/external/atomic_queue/defs.h
Expand Up @@ -6,7 +6,8 @@

#include <atomic>

#if defined(__x86_64__) || defined(_M_X64)
#if defined(__x86_64__) || defined(_M_X64) || \
defined(__i386__) || defined(_M_IX86)
#include <emmintrin.h>
namespace atomic_queue {
constexpr int CACHE_LINE_SIZE = 64;
Expand Down

0 comments on commit d4abf9b

Please sign in to comment.