Open suyashmohan opened 4 years ago
Hi @suyashmohan
Thanks for vcpkg support.
AFAIK, MSVC don't support to align function-parameters in older VC++ versions. So it is disabled in older Visual Studio versions:
#if defined(_MSC_VER)
/* do not use alignment for older visual studio versions */
# if _MSC_VER < 1913 /* Visual Studio 2017 version 15.6 */
# define CGLM_ALL_UNALIGNED
# define CGLM_ALIGN(X) /* no alignment */
# else
# define CGLM_ALIGN(X) __declspec(align(X))
# endif
#else
# define CGLM_ALIGN(X) __attribute((aligned(X)))
#endif
I didn't test this with CMake and ARM Windows, maybe we can/must disable alignment where we cannot support. Defining CGLM_ALL_UNALIGNED
will disable alignments if needed, also making CGLM_ALIGN
empty is good idea as above
Is _MSC_VER
defined in your case?
Similar issue: https://github.com/recp/cglm/issues/4
I went through a lazy route. I disabled ARM port for now. Sorry 😅 I am new to vcpkg and cmake. I also don't have any resources, only option to debug is to make PRs to official repo to trigger tests on arm-uwp platform.
No problem, we should fix this issue for the future
This is still happening, noticed while getting CI working in #386.
@waywardmonkeys thanks for reporting, will check again asap 👍
I am trying to add cglm to vcpkg https://github.com/microsoft/vcpkg/pull/13510
Apparently, CI pipeline have tests for all platforms and cglm is failing for ARM Windows UWP platform.
Is there anything that needs to be added to CMake options or is it not supported by library? arm64_windows and x64_uwp are okay. It's just arm_uwp that had issue