Fix for building with Windows/MSVC
This commit is contained in:
parent
6b8cb94ce4
commit
5678ef8d83
2 changed files with 6 additions and 1 deletions
|
@ -20,6 +20,10 @@
|
|||
// IN THE SOFTWARE.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
|
||||
#include "ispc_texcomp.h"
|
||||
#include "kernel_ispc.h"
|
||||
#include <memory.h> // memcpy
|
||||
|
|
|
@ -11,6 +11,7 @@ incdirs = include_directories([
|
|||
])
|
||||
|
||||
dependencies = [
|
||||
dependency('vulkan')
|
||||
]
|
||||
|
||||
ispc_kernel = custom_target('ipsc_kernel', input: ['ispc_texcomp/kernel.ispc'], output: ['kernel_ispc.o', 'kernel_ispc_avx2.o', 'kernel_ispc_sse4.o', 'kernel_ispc.h'], command: ['ispc', '-O3', '--arch=x86_64', '--target=sse4,avx2', '--opt=fast-math', '--pic', '@INPUT@', '-h', '@OUTDIR@/kernel_ispc.h', '-o', '@OUTPUT0@'])
|
||||
|
@ -23,4 +24,4 @@ ispc_sources = [
|
|||
|
||||
ispc_texcomp = static_library('ispc_texcomp', ispc_sources)
|
||||
|
||||
executable('TextureTaffy', sources, dependencies: dependencies, include_directories: incdirs, install: true, install_dir: '', install_tag: 'exe', link_with: ispc_texcomp)
|
||||
executable('TextureTaffy', sources, dependencies: dependencies, include_directories: incdirs, install: true, install_dir: '', install_tag: 'exe', link_with: ispc_texcomp)
|
Loading…
Reference in a new issue