compressonator icon indicating copy to clipboard operation
compressonator copied to clipboard

Build error on MSVC

Open psadda opened this issue 1 year ago • 0 comments

There is a typo in CMP_Core that leads to a build error on MSVC

https://github.com/GPUOpen-Tools/compressonator/blob/f4b53d79ec5abbb50924f58aebb7bf2793200b94/cmp_core/CMakeLists.txt#L99C52-L99C65

/arch:AVX-512 should instead be /arch:AVX512

The bad flag leads to a warning: ignoring invalid /arch: argument 'AVX-512'; for 64-bit expected one of AVX, AVX2, AVX512, AVX512F. The warning in turn leads to dozens of downstream compilation errors because the expected intrinsics are not available.

On a semi-related note, the if (WIN32) conditionals in this CMake file should probably be replaced with if (MSVC). (I don't think MinGW would like receiving those MSVC style arguments.)

psadda avatar Nov 25 '24 22:11 psadda