mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-04 16:05:51 +01:00
pick the AVX2 spelling by driver, not by platform
betterRenderer gated on WIN32, and WIN32 is true for clang's GNU driver too, so /arch:AVX2 reached a driver that reads it as a file name. Swept every compile and link option in the tree for MSVC-style flags without an MSVC guard; this was the only one left.
This commit is contained in:
@@ -111,10 +111,12 @@ else ()
|
|||||||
target_compile_definitions(${LIBMANUL_NAME} PUBLIC "LIBMANUL_WITH_VULKAN=0")
|
target_compile_definitions(${LIBMANUL_NAME} PUBLIC "LIBMANUL_WITH_VULKAN=0")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
# Which spelling to use follows the compiler driver, not the platform: the
|
||||||
|
# Windows build runs clang's GNU driver, which reads /arch:AVX2 as a file name.
|
||||||
if(ENABLE_AVX2)
|
if(ENABLE_AVX2)
|
||||||
if (WIN32)
|
if (MSVC)
|
||||||
target_compile_options(${LIBMANUL_NAME} PRIVATE "/arch:AVX2")
|
target_compile_options(${LIBMANUL_NAME} PRIVATE "/arch:AVX2")
|
||||||
elseif (UNIX)
|
else ()
|
||||||
target_compile_options(${LIBMANUL_NAME} PRIVATE "-mavx2")
|
target_compile_options(${LIBMANUL_NAME} PRIVATE "-mavx2")
|
||||||
endif ()
|
endif ()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user