Commit Graph

102 Commits

Author SHA1 Message Date
Saleem Abdulrasool
0ac605fb83 Update WindowsBuild.md
Add a missing `popd` and add note about the 64-bit python.  Remove an obsolete comment about `SWIFT_WINDOWS_LIBRARY_DIR`.
2019-02-11 20:26:06 -08:00
Saleem Abdulrasool
1ed07848ab Update WindowsBuild.md
Deal with different python versions being installed.  GYB is python2 only and breaks with python 3.x.  Ensure that we pick up python 2.7 when building (this is the version vended by Visual Studio and is the stable 2.x series release).
2019-02-11 09:58:18 -08:00
Dimitris Apostolou
d84048e555 Fix typos 2019-02-11 08:33:47 +02:00
Saleem Abdulrasool
9932c5d69e Update WindowsBuild.md
Update instructions to add ICU to path to avoid the multiprocessing failure.  Additionally, remove the `file` tool as that is no longer needed for the test suite.
2019-02-08 17:01:19 -08:00
Saleem Abdulrasool
e74ef5d892 Update WindowsBuild.md
Enable SourceKit builds by default even on Windows, this has been ported to Windows though the test suite is not yet ready.
2019-02-07 15:03:17 -08:00
Saleem Abdulrasool
a97c732d75 Update WindowsBuild.md
Add a workaround to try to reduce the path lengths a bit since it is unlikely that LLVM will accept changes to improve `lit` to support long paths on Windows.  There is strong opposition to improvements there from @rui314 and @nico at https://reviews.llvm.org/D57533 .
2019-02-06 08:55:26 -08:00
Saleem Abdulrasool
90a4485b31 Update WindowsBuild.md
Default to RelWithDebInfo builds on Windows because the build times with everything debug is ludicrous.  This gives a relatively useful build for development, even though the targets built with `clang-cl` have a slightly poorer debugging experience.  This reduces the build time by an order of magnitude though.  In theory, it is possible to build a second build of LLVM and Clang to get a debug build of the swift compiler building with a release build of clang.
2019-02-04 17:55:50 -08:00
Saleem Abdulrasool
da4b18b843 Update WindowsBuild.md
Make lldb recipe copy-pasteable.
2019-02-04 15:25:07 -08:00
Saleem Abdulrasool
cb337d8803 Update WindowsBuild.md
Update docs for lldb builds and fix a typo in the path in the copy-paste commands.
2019-01-29 12:52:52 -08:00
Saleem Abdulrasool
afd8ea29c9 Update WindowsBuild.md
Improve python support documentation for lldb
2019-01-28 14:06:53 -08:00
Gwynne Raskind
060d2b5787 Put libdispatch source path back in Swift cmake invocation 2019-01-27 16:13:14 -06:00
Gwynne Raskind
745543a8fc Several minor fixes to Windows build instructions
- Fix minor typos
- Add missing `git clone` for LLDB
- Fix inconsistent/missing quotes in code blocks
- A few other consistency fixups
- `SWIFT_PATH_TO_LIBDISPATCH_SOURCE` is only used on Linux
- Use `-A` and `-T` with modern CMake instead of `-DCMAKE_GENERATOR_PLATFORM`
- Add missing info on `libcurl` and `libxml2` requirements for `swift-corelibs-foundation`
2019-01-27 15:55:06 -06:00
Saleem Abdulrasool
b2d68b8163 Merge pull request #22062 from apple/master-manipulator
Update WindowsBuild.md
2019-01-23 16:43:15 -08:00
Saleem Abdulrasool
69406baf76 Update WindowsBuild.md
Add additional path updates to allow the tests to run properly.
2019-01-23 10:22:59 -08:00
Saleem Abdulrasool
ee67468b32 Update WindowsBuild.md
Update the generator replacement instructions.  This ensures that the instructions are correct given all the updates for the windows build instructions.
2019-01-23 10:14:29 -08:00
Saleem Abdulrasool
9fa91e97aa Merge pull request #21934 from apple/1-cheese-path-please
Update WindowsBuild.md
2019-01-16 19:44:35 -08:00
Saleem Abdulrasool
9f6d3b95d4 Update WindowsBuild.md
Prepend to the path rather than append to ensure that the new compiler is picked up.  Thanks to @lanza for pointing this out.
2019-01-16 14:31:01 -08:00
Nathan Lanza
1d16e44103 Fix type in WindowsBuild.md 2019-01-16 13:08:30 -08:00
Saleem Abdulrasool
42a47bd58f Update WindowsBuild.md
Add missing quotes to command to make it work.
2019-01-07 13:18:43 -08:00
Saleem Abdulrasool
865ab20452 Update WindowsBuild.md 2019-01-03 12:42:26 -08:00
Saleem Abdulrasool
24c031a7cf Update WindowsBuild.md
Update the windows build documentation for setting up the drive substitution as well as fix the rules for building swift, cmark, etc.
2019-01-03 10:14:36 -08:00
Saleem Abdulrasool
6e51fbbd91 Merge pull request #21524 from apple/windows-git-usage
docs: add some notes on Windows source management
2019-01-02 08:27:44 -08:00
Saleem Abdulrasool
7b10ac40b1 doc: update external Windows test dependencies
`file` is needed during tests, add a note on that.
2018-12-25 15:26:47 -08:00
Saleem Abdulrasool
7450217605 docs: add some notes on Windows source management
Windows uses CR+LF for line endings while Unix uses LF.  The tests are setup to expect Unix-style line endings.  Ensure that git does not convert between them which will result in test failures.
2018-12-22 12:26:33 -08:00
Saleem Abdulrasool
dfc9668488 docs: add documentation for libdispatch on windows
Add documentation for building libdispatch on Windows.  This is needed for building foundation.  Clean up some mistakes while here.  Adjust the swift-corelibs-foundation build to start building the swift side of the world as well.
2018-12-18 15:08:58 -08:00
Saleem Abdulrasool
6a991bcae8 Update WindowsBuild.md
Update the documentation to cover how to start building swift-corelibs-foundation now that the port of it is sufficiently far along that others can start helping soon.  Take the opportunity to reduce some of the clutter in the parameters to make it easier to see the parameters at a glance.
2018-12-18 13:03:29 -08:00
Saleem Abdulrasool
c3a26ecd55 docs: running tests on Windows
Start documenting how to run the test suite on Windows so that others can easily reproduce the test results.  Document the external dependencies from the test suite.  Since the LLVM test suite depends on the GNUWin32 tools, I believe that this dependency is not too onerous.  Over time, it may be possible to implement more of the functionality in lit to reduce the dependency, but, for now, use the tools to speed up the test suite bring up.
2018-12-15 10:47:18 -08:00
Saleem Abdulrasool
eab34b613c simplify lldb build instructions
Update the LLDB build instructions for windows to be simpler and use MSVC to build.  This is just as effective and has the benefit of making it easier to debug lldb.
2018-12-04 18:43:56 -08:00
Saleem Abdulrasool
b1dcf73b31 Update Windows.md
Update the cmake configuration to actually reflect the current state of the world.  This now builds against the MSVC built LLVM/clang and builds with clang-cl.  This also enables building the test suite since that is starting to work on Windows.  The MSVC commands are still out of date, but this is an overall improvement to the instructions.  Since the primary work shifted towards Windows x86_64, we can use the prebuilt binaries for ICU from the ICU project as they provide Windows x86_64 builds.
2018-12-03 11:40:01 -08:00
Xiaodi Wu
bcedc30bd9 [NFC] Fix a typo and remove a comma in WindowsBuild.md 2018-11-29 18:59:48 -05:00
Saleem Abdulrasool
a9c68c1908 Update Windows build instructions
Update the windows build instructions to account for:
- the new module (WinSDK), the changes in the ICU configuration
- the need for Visual Studio 2017
- the dropped requirement for installing Python, CMake, Ninja as they are part of VS2017
- the fact that the release mode crasher has been fixed
- the fact that swift-corelibs-libdispatch is supported on Windows
- the changes in clang's flags due to updates to clang
2018-11-29 09:09:04 -08:00
Saleem Abdulrasool
e958f057bc docs: don't bother building compiler-rt on Windows
We do not currently use compiler-rt's functionality on Windows.  Avoid the unnecessary build.  This is intended to simplify the build instructions for Windows.
2018-11-26 11:17:07 -08:00
Saleem Abdulrasool
32af975bc2 docs: update Windows build documentation for clang
Avoid using a junction when building the llvm/clang tools.  Prefer to use the LLVM projects support instead.
2018-11-22 11:31:11 -08:00
Saleem Abdulrasool
b739e09845 docs: add missing flag for CMake configure on Windows
When building on Windows, we need to set the target triple explicitly to
x86_64-unknown-windows-msvc to ensure that the environment is specified
to define the os condition properly.
2018-11-05 18:29:00 -08:00
Jason Mittertreiner
c4021d8720 Clarified Windows build docs
- The module maps need to be renamed to module.modulemap
- The module maps need to be copied for non cross compiled builds as well
- The cmake variable is DIRS not DIR
2018-10-23 17:57:53 -07:00
Jason Mittertreiner
2d41f7896b Provide the correct path in WindowsBuild.md
If you follow steps 1-6 in the build, you end up with a build directory
called "Ninja-DebugAssert", not Ninja-RelWithDebInfoAssert as provided in
the code snippet.
2018-09-21 11:21:05 -07:00
Dietmar Planitzer
47d30ee445 Updated the Windows build documentation:
- made the build type consistent across all subprojects
- point out that the release build may crash
- link the Swift compiler and runtime libraries with incremental linking turned off
- suppress expected warnings
- added missing build parameters to the lldb cmake invocation line
- added simple installation instructions
2018-06-22 10:08:50 -07:00
Andrew Breckenridge
31c92855fd windows/docs: remove 2 hour estimate
This could take much longer, let's not lie
2018-04-27 11:26:06 -07:00
Saleem Abdulrasool
4aaa60dd4d build: add documentation for building lldb on Windows
Add documentation to enable building lldb on Windows to debug swift code.
2018-04-26 13:05:52 -07:00
Saleem Abdulrasool
dc7df33a37 docs: correct CMake variable name for Windows build
The windows build cannot be built with `build-script` as that is written in bash.  Correct the documentation to use the right variable name.
2018-04-10 09:52:58 -07:00
Xiaodi Wu
2cca78bb4f [gardening] Address a typo and some punctuation in WindowsBuild.md 2018-03-22 23:22:21 -05:00
Andrew Breckenridge
a5b777625c docs/Windows: Add disclaimer about llvm_bin_dir & fixup LLVM paths 2018-03-21 14:18:52 -07:00
Andrew Breckenridge
9edc07cd9e docs/Windows: Add note about using forward slashed paths 2018-03-21 14:10:42 -07:00
Andrew Breckenridge
55c1b2d850 docs/Windows: Remove extra bin from DCMAKE_CXX_COMPILER path 2018-03-21 14:10:42 -07:00
Andrew Breckenridge
42b4add93e docs/Windows: remove unnecessary ninjas in mkdirs 2018-03-21 14:10:42 -07:00
Andrew Breckenridge
55a129cc5e docs/Windows: Add env var for llvm bin dir 2018-03-21 14:10:42 -07:00
Gonsolo
0e041918ed Remove wrong statement
This statement and the build commands below contradict each other.
2018-03-09 11:32:38 +01:00
Andrew Breckenridge
2c8d58c6fd docs/WindowsBuild: Update cmark build invocation to Release mode 2018-02-26 13:44:37 -08:00
Andrew Breckenridge
beec93dc18 docs/WindowsBuild: Reorder clang-cl & MSVC + Add MSVC Swift invocation 2018-02-21 13:44:32 -08:00
Andrew Breckenridge
6a8b1e2a40 docs/Windows: Format and clarify documentation 2018-02-20 20:33:09 -08:00