Skip to content

Fixed Clang on Windows detection#35

Open
cafeed28 wants to merge 1 commit intoasmjit:masterfrom
cafeed28:master
Open

Fixed Clang on Windows detection#35
cafeed28 wants to merge 1 commit intoasmjit:masterfrom
cafeed28:master

Conversation

@cafeed28
Copy link

Compiling asmtk on Windows with Clang produces compile errors:

clang++: error: unknown argument: '-Zc:inline'
clang++: error: unknown argument: '-Zc:strictStrings'
clang++: error: unknown argument: '-Zc:threadSafeInit-'

They are caused by incorrect detection of MSVC-compatible frontend, CMAKE_CXX_COMPILER_FRONTEND_VARIANT should be used instead of CMAKE_CXX_SIMULATE_ID, see https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_FRONTEND_VARIANT.html and https://discourse.cmake.org/t/how-to-determine-if-clang-or-clang-cl-is-used-on-windows/4129/5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant