Uploaded image for project: 'Swift'
  1. Swift
  2. SR-1131

Build script for MSVC on Windows

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Do
    • Component/s: None

      Description

      There is no build script for MSVC on Windows. Some problems that need to be solved:

      • build-script.sh is interpreted with Bash and doesn't work natively on Windows.
      • cmake output for clang has some problems.
        • To compile the compiler source, clang.exe or clang-cl.exe should be used. The CMake generator option -G "Visual Studio 14 2015 Win64" created many *.vcxproj files with unwanted options. They are unknown options such as -w14062 /Zc:inline /EHs-c- and -fms-compatibility. Currently a bash script running on Cygwin is used to patch .vcxproj files (see attachment), but the build process should be performed without this post-processing.
      • The command line is trimmed if it is over 8192 bytes.
        • The limited command line buffer size was problem when compiling Swift.obj. When generating Swift.obj, the line-directive script is used with full path list of stdlib/public/core/*.swift. It was nearly 15KB size.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hughbe Hugh Bellamy
                Reporter:
                tinysun Han Sangjin
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: