tinysun212 / swift-windows

Swift compiler for Cygwin, MSVC, MinGW. Full development environment can be downloaded from the Swift for Windows.
http://SwiftForWindows.github.io
Apache License 2.0
331 stars 30 forks source link

Error "Use 'clang-cl' instead, e.g. by setting 'CC=clang-cl'" #14

Open bagipro opened 6 years ago

bagipro commented 6 years ago

Hi, I'm doing everything according to manual, but expecting an error:

-- The C compiler identification is Clang 3.9.0
CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeDetermineCompilerId.cmake:771 (message):
  The Clang compiler tool

    "C:/Users/Admin/Desktop/BUILD/build/NinjaMSVC/llvm/Release/bin/clang.exe"

  targets the MSVC ABI but has a GNU-like command-line interface.  This is
  not supported.  Use 'clang-cl' instead, e.g.  by setting 'CC=clang-cl' in
  the environment.
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeDetermineCCompiler.cmake:113 (CMAKE_DIAGNOSE_UNSUPPORTED_CLANG)
  CMakeLists.txt:268 (project)

CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/Admin/Desktop/BUILD/build/NinjaMSVC/swift/CMakeFiles/CMakeOutput.log".

I googled and it says that the problem in sources, also found that PR https://github.com/vector-of-bool/vscode-cmake-tools/pull/421. It's strange that I'm the only person who faced with such error when building Swift :/

wgornicki commented 6 years ago

Having the same problem. Did you get this right?