Commit Graph

34 Commits

Author SHA1 Message Date
Jeff
b0bbf921fe cmake: Remove LLVM_ENABLE_ASSERTIONS from Windows cmake cache. 2025-03-24 18:44:41 -07:00
Stefan Gränitz
76243a25db [windows][toolchain] Build sanitizers and builtins standalone for all SDKs (#78861)
Unified builds of compiler-rt together with LLVM failed for the Android SDKs. It got too complicated to redirect the way LLVM would configure the nested build-trees. Standalone builds slightly increase build time, but they turned out much simpler and we end up with less duplication of definitions.
2025-01-28 22:08:07 +01:00
Hiroshi Yamauchi
32832dd1e1 Revert "[windows][toolchain] Enable builtins and sanitizers"
Revert https://github.com/swiftlang/swift/pull/77770

To fix CI https://ci-external.swift.org/job/swift-main-windows-toolchain-arm64/785/consoleText
2024-12-06 14:22:30 -08:00
Saleem Abdulrasool
3ab2a3ee4c Merge pull request #77770 from weliveindetail/windows-toolchain-sanitizers
[windows][toolchain] Enable builtins and sanitizers
2024-12-05 15:46:46 -08:00
Saleem Abdulrasool
020d67330c build: enable libxml2 in the toolchain, use llvm-mt
Enable support for libxml2 on Windows to allow `llvm-mt` to be usable.
This then allows us to use `llvm-mt` as the manifest tool when building
for Windows. Remove the then obsoleted workaround of `-D CMAKE_MT=mt`.
This reduces the dependency on the MSVC toolchain and paves the path to
enabling the use of the manifest tool in SPM.
2024-12-02 17:05:20 -08:00
Stefan Gränitz
cf748a9dd0 Exclude Anroid targets for the moment 2024-11-28 17:06:33 +01:00
Stefan Gränitz
5bd3ed3577 Fix CMAKE_ANDROID_ARCH_ABI=x86 for i686-unknown-linux-android 2024-11-28 13:00:53 +01:00
Stefan Gränitz
76be949750 Align default targets for builtins and runtimes on x86_64 hosts 2024-11-26 16:56:56 +01:00
Stefan Gränitz
c7da7185ab Enable builtins for all runtime targets in CMake cache file 2024-11-21 15:23:07 +01:00
Stefan Gränitz
1857d1c2af Initial patch for early feedback 2024-11-21 14:50:19 +01:00
Rintaro Ishizaki
e916e9e459 [CMake] Give a dedicated component to compiler swift-syntax libraries (#76497)
* [CMake] Give a dedicated component to compiler swift-syntax libraries

'compiler-swift-syntax-lib' so projects statically link to compiler
libraries (libAST etc) can use the required shared libraries.

rdar://135923606

* Update cmake caches

* Add back implicit `swift-syntax-lib` to `compiler` component for now

Some clients doesn't specify `swift-syntax-lib`.
2024-09-16 21:34:32 -07:00
Saleem Abdulrasool
50aa3155f1 cmake: add llvm-ml to the windows toolchain build
`llvm-ml` is a replacement for `ml` which is the MSVC assembler. This is
useful on Windows and should be part of the distribution to ensure that
we have a complete toolchain.
2024-08-16 14:47:06 -07:00
Alex Lorenz
6a7be95027 Merge pull request #74754 from hyp/eng/android-compiler-rt-buildps1
[windows][toolchain] build  android compiler-rt builtins when buildin…
2024-07-16 12:35:42 -07:00
Alex Lorenz
063a41c308 fix formatting 2024-07-15 13:03:13 -07:00
Alex Lorenz
bd2c3ea53b [windows][toolchain] build android compiler-rt builtins when building Android SDK with build.ps1 2024-07-12 17:22:13 -07:00
Saleem Abdulrasool
c048449694 caches: add clang-features-file to the install components
This ensures that we distribute the features.json for clang in the
toolchain distribution image which is used for building the image.
2024-06-25 14:02:01 -07:00
Jeremy Day
1b61c68ab1 Set LLDB_ENABLE_LIBXML2 NO in Windows-x86_64 CMake cache 2024-04-11 15:45:21 -07:00
Saleem Abdulrasool
673c3929f1 caches: adjust the Windows cache files for runtimes
Add the Windows ARM64 builtins and profile libraries for the toolchain.
2024-03-13 11:43:22 -07:00
Saleem Abdulrasool
1864caad5e build: migrate to CMake based build of swift-format
This allows us to build swift-format with dynamic linking against the
toolchain build of the swift-syntax and swift-argument-parser packages.
Wire up the swift-markdown build and hoist the swift-format build prior
to sourcekit-lsp. This sets us up for supporting swift-format based
formatting in the LSP.
2024-01-26 15:51:29 -08:00
Adrian Prantl
393e48c756 Merge pull request #71023 from adrian-prantl/swift-rename
Rename lldb-vscode -> lldb-dap
2024-01-20 08:54:45 -08:00
Adrian Prantl
b413c0d8df Rename lldb-vscode -> lldb-dap 2024-01-19 13:08:36 -08:00
Saleem Abdulrasool
fdb1c5d4fb caches: include clang-scan-deps, clang-deps-launcher
Add a couple of additional tools to the toolchain distribution.
2024-01-12 15:34:52 -08:00
Saleem Abdulrasool
14be5e943d caches: enable static mirror lib on Windows
Enable building and installation for the static mirror library on
Windows.
2024-01-04 10:14:39 -08:00
Saleem Abdulrasool
13f13cf530 Update Windows-x86_64.cmake
Add `swift-syntax-lib` component to the distribution set.
2023-10-17 12:38:06 -07:00
Saleem Abdulrasool
abf629b4bf Update Windows-x86_64.cmake
Disable building ORC on Windows.  We currently do not use this library so lets not spend time building it.
2023-08-10 14:33:55 -07:00
Saleem Abdulrasool
f7c9a28db2 caches: disable more components for the toolchain build
Windows builds in waves:
  - build build tools
  - build tools (compilers, debuggers, linkers, assemblers)
  - build runtimes (Swift runtime, standard library, experimental libraries)
  - build core libraries
  - build Swift tooling

We do not need to build the C++ interop module at the moment when
building the tools.  This disables that and the extra content which
currently does not result in any artifacts.
2023-04-13 09:26:57 -07:00
Robert Widmann
2d07f382c5 Delete _InternalSwiftSyntaxParser And Its Build Infrastructure
This is the start of the removal of the C++ implementation of libSyntax
in favor of the new Swift Parser and Swift Syntax libraries. Now that
the Swift Parser has switched the SwiftSyntaxParser library over to
being a thin wrapper around the Swift Parser, there is no longer any
reason we need to retain any libSyntax infrastructure in the swift
compiler.

As a first step, delete the infrastructure that builds
lib_InternalSwiftSyntaxParser and convert any scripts that mention
it to instead mention the static mirror libraries. The --swiftsyntax
build-script flag has been retained and will now just execute the
SwiftSyntax and Swift Parser builds with the just-built tools.
2022-11-02 10:35:29 -07:00
Saleem Abdulrasool
699202656a caches: tweak the Windows toolchain build
Update the toolchain configuration to disable the python home embedding.
This should allow us to be more freestanding of the python location and
give us better control of the python library being used.
2022-04-10 21:39:11 -07:00
Saleem Abdulrasool
0a8da95fb4 caches: add LLVM_DEFAULT_TARGET_TRIPLE to Windows-x86_64
Add the default target triple to match the target for the Windows
toolchain.  This avoids the need for an additional parameter, and
it makes sense for the target to be the host by default. Explicit
parameters can change the target when desired.
2021-07-15 09:50:53 -07:00
Saleem Abdulrasool
b05c1e9ca0 Windows: enable the profiling library on Windows
The official builds include the profiling library, so we should enable
it on the CI to ensure that the path is tested.  This should only add
~1m to the total build time.
2021-06-02 12:51:35 -07:00
Saleem Abdulrasool
3aababb46c Windows: re-organise toolchain cache (NFC)
Make a few more options more explicit and re-group a few options. This
is merely for ease of human processing.
2021-06-01 18:30:09 -07:00
Saleem Abdulrasool
47e7991005 Windows: remove duplicated entry in distribution
This removes the duplicated `llvm-mt` from the toolchain distribution
list.
2021-06-01 18:30:09 -07:00
Saleem Abdulrasool
5f9eba2cb3 build: build parser-lib by default on Windows
Add parser-lib to the default build configuration on Windows.  This is
useful for building additional tooling.
2021-03-19 08:22:28 -07:00
Saleem Abdulrasool
b8d9e3b9c7 docs: make Windows build instructions fully self-contained
Remove the extra repository dependency for the single cache file.
Update the build examples to simplify the cmake invocation
appropriately.
2020-07-06 23:14:00 +00:00