How to enable AVX

Hey, I am trying to use a library which handles up to AVX512, but I can’t find the build properties to add the arch/ to.
Google has provided little information and no direct answers for this.
How to setup AVX with the unreal UBT ?

Thank you.

Search about setting enviroment variable for compiler. Setting it inside UBT is not the best approach.

Anyway still if you want to add those, set the specific optimization in file for the specific platform toolchain.cs in UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Platform/ “Nameofplatform”. eg UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Platform/Linux

Some of the optimizations could cause error in the editor, compile fail etc, so it be careful. (Please keep backup before modifying and as it will affect other users please don’t git pull before stashing such changes !).

edit: Also I think the extension you want to use can be added to the build.cs of the plugin. There is a tutorial for that somewhere in this forum