kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit 976e9ecbc82b42d5ba6b51cbbce42df394e60a11
parent de4cbd1052b126c0c6386c913663ee75a175496e
Author: [email protected] <[email protected]>
Date:   Mon, 15 Apr 2019 10:17:44 +0000

Pass -mstackrealign to clang-cl

Diffstat:
MCMakeLists.txt | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -121,8 +121,12 @@ add_library(kfr INTERFACE) target_sources(kfr INTERFACE ${KFR_SRC}) target_include_directories(kfr INTERFACE include) target_compile_options(kfr INTERFACE "$<$<CONFIG:DEBUG>:-DKFR_DEBUG>") -if (NOT MSVC AND NOT IOS) - target_compile_options(kfr INTERFACE -mstackrealign) +if (NOT IOS) + if (CLANG) + target_compile_options(kfr INTERFACE -Xclang -mstackrealign) + elseif (NOT MSVC) + target_compile_options(kfr INTERFACE -mstackrealign) + endif () endif () if (MSVC) target_compile_options(kfr INTERFACE -bigobj)