Commit Graph

5057 Commits

Author SHA1 Message Date
Brent Royal-Gordon
dab60f04ca Partially revert "Keep gyb from messing up line endings on Windows"
This reverts most of commit 85599f7582b8809be889f589fe4d1d95e09ec945; it turns out the ‘b’ flag changes behavior more drastically in Python 3.

Fixes SR-12328, rdar://problem/60230415.
2020-03-11 10:47:22 -07:00
Kuba (Brecka) Mracek
b2edf20a81 Merge pull request #30112 from apple/mracek/arm64e
Add arm64e and pointer authentication support for Swift
2020-03-07 20:38:36 -08:00
Kuba (Brecka) Mracek
ab6533a40f Merge branch 'master' into mracek/arm64e 2020-03-06 15:07:01 -08:00
Mishal Shah
928f8292c0 [update-checkout] Fix missing config for pythonkit and tensorflow-swift-apis on master-next scheme 2020-03-06 12:10:45 -08:00
Brent Royal-Gordon
85599f7582 Keep gyb from messing up line endings on Windows
GYB opens its inputs and outputs in text mode. This is a problem because the recommendation in Windows is to check everything out in LF mode to avoid breaking tests, so gybbing a file ends up converting LFs to CRLFs. That broke test/SILGen/magic_identifier_file_conflicting.swift.gyb.

Modify GYB to open its files in binary mode instead of text mode. This is a no-op everywhere but Windows.

Note that this change is incomplete: it’s somewhat difficult to switch stdin and stdout to binary mode in Python 2. I’ve added FIXME comments about this.
2020-03-05 23:30:37 -08:00
Davide Italiano
af29f5dd3a [build-script] Allow primary-variant-arch and primary-variant-sdk to be set independently.
It's unclear why they're grouped, and it's also confusing.
2020-03-04 12:31:43 -08:00
Dario Rexin
686bbc7b0b Merge pull request #30155 from drexin/wip-remove-libatomic
build: Don't link against libatomic on Linux
2020-03-04 10:44:33 -08:00
Kuba (Brecka) Mracek
5d918e5ee1 Merge branch 'master' into mracek/arm64e 2020-03-03 08:28:01 -08:00
Dario Rexin
4c0b8fa5c3 build: Don't link against libatomic on Linux
The dependency on libatomic was removed in 97df90fbf1. This commit removes leftover cases that still link against libatomic.
2020-03-02 17:34:53 -08:00
Xi Ge
0aea09fa14 ABI checker: remove assert-only decls from the generated stdlib ABI baseline
rdar://59772479
2020-03-02 14:01:53 -08:00
Saleem Abdulrasool
2943e1c827 Merge pull request #30110 from compnerd/install-location
build: use the correct install location
2020-02-28 08:35:34 -08:00
Saleem Abdulrasool
d8a40a1662 build: use the correct install location
Use the correct installation location path computation
`toolchain_install_path` rather than trying to compute it ourselves.
This ensures that the files are installed into the right location.
2020-02-27 16:12:17 -08:00
Kuba Mracek
45ba5cec05 [arm64e] Add arm64e support into Swift's build system 2020-02-27 16:08:15 -08:00
Owen Voorhees
78b6759ba4 Merge pull request #30059 from owenv/sourcekit-edu-notes
[Diagnostics][SourceKit] Expose educational notes through SourceKit diagnostics request
2020-02-27 08:12:35 -08:00
Owen Voorhees
f11df3ee22 [Diagnostics][SourceKit] Expose diagnostic educational notes through SourceKit requests 2020-02-26 14:30:28 -08:00
Daniel Rodríguez Troitiño
073e44d6e8 Merge pull request #29296 from buttaface/droid
[android] Get build scripts working natively, fix tests and install
2020-02-24 21:05:47 -08:00
Xi Ge
853c0f545b Merge pull request #29974 from nkcsgexi/53776566
ABIChecker: ignore accessors with forced static dispatch
2020-02-24 14:25:06 -08:00
Xi Ge
71a73a9551 test: update ABI/API baselines for stdlib 2020-02-24 12:23:24 -08:00
Mishal Shah
0a46bd457b [Preset] skip simulator and macOS tests on non_executable test preset 2020-02-22 11:48:46 +05:30
Mishal Shah
5a4d290deb [Test] Fix build system test by adding only_non_executable_test flag 2020-02-21 19:56:53 +05:30
Mishal Shah
4e0acd3382 [Preset] Add preset for only-non-executable-test 2020-02-21 18:47:49 +05:30
Mishal Shah
2f7ff37329 [Build System] Add support to execute non-executable tests 2020-02-21 18:03:16 +05:30
Saleem Abdulrasool
ac6e34ce7c build: make tensorflow-swift-apis build with older CMake
Support CMake 3.15 for the build which required changing into the build
tree before configuring/building.

Use the just-built `swiftc` to build the product.
2020-02-20 15:35:41 -08:00
Saleem Abdulrasool
5d87e43ffb build: improve the PythonKit build
This improves the PythonKit build for CMake <3.16 and for Python 2.7 or
Python 3.x.
2020-02-20 08:22:58 -08:00
Saleem Abdulrasool
ef32ead97f build: correct executable name for swift compiler
The swift compiler is `swiftc` not `swift`.  Correct the spelling.
2020-02-19 11:09:06 -08:00
Saleem Abdulrasool
01f9321496 build: build PythonKit with just built toolchain
Use the toolchain we just built to build the PythonKit module.
2020-02-18 16:34:05 -08:00
Mishal Shah
d4077f36ee [Preset] use the Linux install components not macOS for Linux preset 2020-02-16 08:46:12 -08:00
Mishal Shah
a8e1e77dd8 [Preset] Add mixin for installing clang components 2020-02-15 23:55:47 -08:00
Mishal Shah
ba06dce0ae [Preset] We don't need install-indexstore-db in XCTest preset 2020-02-15 22:24:17 -08:00
Mishal Shah
89f0b58308 [Preset] Add Linux preset for XCTest pull request testing 2020-02-15 22:10:51 -08:00
Saleem Abdulrasool
e3c9ecc7fe Merge pull request #29804 from compnerd/foundation-framework
build: add more paths for LLDB tests
2020-02-14 08:17:40 -08:00
Saleem Abdulrasool
9b332a3a35 build: add an option to optionally build tensorflow-swift-apis
Now that the autodifferentiation support is being upstreamed, add an
option to enable building the TensorFlow swift-apis package optionally.
This enables easier development cycles for the engineers working on it.
2020-02-13 13:21:30 -08:00
Saleem Abdulrasool
dd02e2ae8a build: add more paths for LLDB tests
Alter the test paths for LLDB to enable restructuring the Foundation
sources to be easier for new developers.
2020-02-12 19:45:30 -08:00
Saleem Abdulrasool
8d32ee36fc Merge pull request #29443 from compnerd/unsupported-playground-support
build: migrate playground support to post-build artifact
2020-02-12 11:28:03 -08:00
Ben Langmuir
4a3d4c3164 Re-enable running indexstoreDB tests part of Swift pull request preset
This reverts commit df31c7265b.

rdar://59327164
2020-02-12 07:13:57 -08:00
Ross Bayer
e793fcf052 [Build System: build-script] Moved SWIFT_SOURCE_ROOT, SWIFT_BUILD_ROOT and SWIFT_REPO_NAME along with other project path constants into a new build_swift.constants module. 2020-02-11 12:46:03 -08:00
Mishal Shah
db8bf0bd29 Merge pull request #29744 from apple/master-rebranch
Merge master-rebranch into master to support new llvm branch apple/stable/20200108
2020-02-10 17:50:40 -08:00
Mishal Shah
df31c7265b Disable running indexstoreDB tests part of Swift pull request preset. (59327164) 2020-02-10 14:59:01 -08:00
Michael Gottesman
62f57ccfa4 Merge remote-tracking branch 'origin/master' into master-rebranch 2020-02-09 16:02:00 -08:00
Michael Gottesman
704b0cc169 Presets add missing preset default for build_swift test. 2020-02-09 16:01:03 -08:00
Michael Gottesman
270dcf5a0b Merge remote-tracking branch 'origin/master' into master-rebranch 2020-02-09 15:10:57 -08:00
Michael Gottesman
4b64be4811 Add presets for source compat suite.
This should have been done some time ago, but it fell through the cracks. Ran
into some problems here, so I am taking care of it real quickly.
2020-02-09 15:07:41 -08:00
Michael Gottesman
f352660a09 [build-script-impl] By default use the just built dsymutil to ensure that when we use the newer LLVM, the dsymutil supports newer debug info.
This can be disabled via the build-script-impl flag:

darwin-install-extract-symbols-use-just-built-dsymutil
2020-02-08 16:26:06 -08:00
swift-ci
67b2e7f139 Merge remote-tracking branch 'origin/master' into master-rebranch 2020-02-08 16:24:27 -08:00
Saleem Abdulrasool
9bfe1d2dfa Merge pull request #29720 from compnerd/refresh
CI: attempt to fix the index for swift
2020-02-08 16:10:43 -08:00
Saleem Abdulrasool
f4086d8428 build: migrate playground support to post-build artifact
This migrates the playground support out of the build-script-impl and
into the python based build system.  This makes it build more similarly
to the Swift Package Manager and SourceKit-LSP.  More importantly, it
reduces the dependency on build-script-impl.
2020-02-08 14:00:02 -08:00
swift-ci
dbd26d2ff5 Merge remote-tracking branch 'origin/master' into master-rebranch 2020-02-08 11:43:32 -08:00
Ross Bayer
7b88f712ea Merge pull request #29718 from Rostepher/flexible-format-script
[Python: black] Update the utils/python_format.py script to accept a list of input paths which narrows down the complete list of known Python sources in the project.
2020-02-08 11:42:17 -08:00
Saleem Abdulrasool
a4486567d8 CI: attempt to fix the index for swift
The file endings matter for some of the tests.  Try a different approach
to refreshing the index.
2020-02-08 09:14:23 -08:00
swift-ci
6c8388f474 Merge remote-tracking branch 'origin/master' into master-rebranch 2020-02-08 01:23:28 -08:00