diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2024-07-19 07:00:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 14:00:38 +0300 |
commit | b0e249d5ae0d3c4633ece8de6e71b99f34bf88f5 (patch) | |
tree | b3696cacac00b189e0080b70dd9862842a0b1e8c | |
parent | 951ce0ad36e4bf2066c48941c00203463d3fe41d (diff) |
Enable SSE2 instruction support in glm for optimized codegen (#2066)
-rw-r--r-- | indra/cmake/00-Common.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake index 07deaa56b0..5a1fb72eca 100644 --- a/indra/cmake/00-Common.cmake +++ b/indra/cmake/00-Common.cmake @@ -32,6 +32,10 @@ add_compile_definitions( ADDRESS_SIZE=${ADDRESS_SIZE}) # -- which we do. Without one or the other, we get a ton of Boost warnings. add_compile_definitions(BOOST_BIND_GLOBAL_PLACEHOLDERS) +# Force enable SSE2 instructions in GLM per the manual +# https://github.com/g-truc/glm/blob/master/manual.md#section2_10 +add_compile_definitions(GLM_FORCE_DEFAULT_ALIGNED_GENTYPES=1 GLM_FORCE_SSE2=1) + # Configure crash reporting set(RELEASE_CRASH_REPORTING OFF CACHE BOOL "Enable use of crash reporting in release builds") set(NON_RELEASE_CRASH_REPORTING OFF CACHE BOOL "Enable use of crash reporting in developer builds") |