mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02: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")
|
||||
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 (WIN32)
|
||||
if (MSVC)
|
||||
target_compile_options(${LIBMANUL_NAME} PRIVATE "/arch:AVX2")
|
||||
elseif (UNIX)
|
||||
else ()
|
||||
target_compile_options(${LIBMANUL_NAME} PRIVATE "-mavx2")
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user