GPUOpen-Tools / compressonator

Tool suite for Texture and 3D Model Compression, Optimization and Analysis using CPUs, GPUs and APUs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non portable use of arch flags

seragh opened this issue · comments

commented

CMP_Core adds SIMD libraries unconditionally and specifies arch/march flags. Those flags are compiler dependent and not platform. The build scripts assumes on Windows msvc is being used but clang becomes more and more common as the compiler of choice and then there is mingw. An other issue is that -march=nehalem and co require an x86 target host to be accepted.

Probably the SIMD libs should be put behind options, ifdefs and the needed flags be fed via presets.