xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.14k stars 782 forks source link

add_vectorexts all can't add simd flags #5499

Closed star-hengxing closed 2 months ago

star-hengxing commented 2 months ago

Xmake Version

dev

Operating System Version and Architecture

windows

Describe Bug

add_vectorexts("all") 应该要每个 flag 单独检测,而不是这样捆绑检测,有一个不过全部就没了。

checking for flags (-arch:SSE -arch:SSE2 /d2archSSE42 -arch:AVX -arch:AVX2 -arch:AVX512) ... no

Expected Behavior

N/A

Project Configuration

N/A

Additional Information and Error Logs

N/A

waruqi commented 2 months ago

再试试,xmake update -s dev

star-hengxing commented 2 months ago

Done

checking for flags (-arch:SSE) ... no
> cl.exe "-arch:SSE" "-nologo"
checking for flags (-arch:SSE2) ... ok
> cl.exe "-arch:SSE2" "-nologo"
checking for flags (/d2archSSE42) ... ok
> cl.exe "/d2archSSE42" "-nologo"
checking for flags (-arch:AVX) ... ok
> cl.exe "-arch:AVX" "-nologo"
checking for flags (-arch:AVX2) ... ok
> cl.exe "-arch:AVX2" "-nologo"
checking for flags (-arch:AVX512) ... ok
> cl.exe "-arch:AVX512" "-nologo"
checking for flags (-arch:SSE2 /d2archSSE42 -arch:AVX -arch:AVX2 -arch:AVX512) ... ok
> cl.exe "-arch:SSE2" "/d2archSSE42" "-arch:AVX" "-arch:AVX2" "-arch:AVX512" "-nologo"
Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


Try again, xmake update -s dev