Commit Graph

1342 Commits

Author SHA1 Message Date
swift-ci
ac8b89abb5 Merge pull request #20082 from drodriguez/android-aarch64-build-script 2018-11-26 19:34:24 -08:00
Mishal Shah
e7481cc0cd Update the plist to use DefaultBuildSettings not OverrideBuildSettings for SWIFT_USE_DEVELOPMENT_TOOLCHAIN_RUNTIME 2018-11-14 13:44:46 -08:00
Mishal Shah
cfd3c52b6f Update the plist information for swift toolchains
rdar://45197621
2018-11-14 12:43:48 -08:00
Mishal Shah
bae265e308 Revert "Revert "[build-script] Update build-script to support building and installing the SourceKit stress tester"" 2018-11-12 11:08:36 -08:00
Mishal Shah
e7d501c2bd Revert "[build-script] Update build-script to support building and installing the SourceKit stress tester" 2018-11-11 17:49:35 -08:00
Nathan Hawes
506307c626 [build-script] Update build-script with a new --skstresstester flag to support building and installing the SourceKit stress tester
This makes use of a helper script in the stress tester repo to do the actual
build and install: https://github.com/apple/swift-stress-tester/blob/master/SourceKitStressTester/Utilities/build-script-helper.py
2018-11-07 09:14:39 -08:00
Saleem Abdulrasool
14dbc9ae14 Merge pull request #20329 from compnerd/frameworks
build: pass the framework path to the importer
2018-11-06 00:11:20 -08:00
swift-ci
2c9616f9c0 Merge pull request #20330 from nkcsgexi/install-swiftsyntax 2018-11-05 21:56:42 -08:00
Saleem Abdulrasool
a94f317857 build: adjust rpath, don't pass -F to the link
Pass the framework only to the importer as `-F` on ELF is used for the
`DT_FILTER`.  Adjust the `DT_RUNPATH` so that the dependent libraries are found.
2018-11-05 14:25:12 -08:00
Xi Ge
d471a5905a build-script: teach the script to optionally install swiftsyntax. 2018-11-05 12:32:02 -08:00
Simon Evans
8609c1e41a cmake: Enable CTEST_OUTPUT_ON_FAILURE to show corelibs-foundation test failure 2018-11-04 17:12:54 +00:00
Simon Evans
6188980324 SR-8876: Update for CMake build for Foundation
- Copy ICU licence into final install.
2018-11-02 17:37:12 +00:00
Simon Evans
3b2ebeecf4 SR-8876: Always build libicu on Linux
- Uses version 61.1 from ICU Github unicode-org/icu repository.

- Updates mixin_linux_installation to add libicu option.

- Use -j when building libicu.

- When buiding ICU, use --with-library-suffix=swift
  This suffixes the ICU symbols with _swift.

  The libaries are now named libicuucswift, libicui18nswift
  and libicudataswift.

- Add the contents of uconfig.h.prepend into uconfig.h. This avoids
  passing the renaming CFLAGS to swift and swift-corelibs-foundation.

Also resolves:

SR-5618: libicu compilation should happen in parallel respecting -j.
2018-11-02 17:37:12 +00:00
Saleem Abdulrasool
679fc7d792 Merge pull request #20032 from compnerd/cmake-foundation
build: switch swift-corelibs-foundation to CMake
2018-11-01 20:10:27 -07:00
Xi Ge
f5dca09a66 build-script: infer swiftpm executables if swiftpm isn't built. 2018-11-01 15:26:26 -07:00
Saleem Abdulrasool
58a4f0deaf build: switch swift-corelibs-foundation to CMake
swift-corelibs-foundation has had a CMake based build system for a while
now.  Switch the official builds over to it.
2018-10-31 13:58:08 -07:00
Adrian Prantl
023ac85383 Enable verbose logging for LLDB tests when building with Xcode 2018-10-26 16:48:55 -07:00
Daniel Rodríguez Troitiño
555e085d78 [build-script] Support for Android aarch64
Support for Android aarch64 in many parts of the build-script. Most of
the changes are reuse variables/parameters that already existed for
Android ARMv7. There is also a new parameter to specify the ICU
data library, which is used by #19503.

With this one can build either armv7 or aarch64, since building both
at the same time requires more changes like #19432 (and probably
more work to support two set of paths).
2018-10-26 12:24:40 -07:00
Ross Bayer
c3a9498f03 Removed the use of bash subshells to execute the test commands per project in build-script-impl. The original reasoning seems to have been to disable Ninja's output buffering which was causing the lit progress bar to behave oddly, however local (parallel) testing does not show any peculiarities now. (#20025) 2018-10-25 15:00:36 -07:00
Saleem Abdulrasool
9c92317ce6 build: do not consult the legacy location for libraries
Update the commands to use the CMake based output directory locations instead of
the legacy staging location.  This will allow us to stop copying the files for
compatibility.
2018-10-23 14:12:34 -07:00
mishal_shah
b44feabefc Codesign dylibs after stripping the debug symbols 2018-10-18 16:28:13 -07:00
Saleem Abdulrasool
b99a0f4af5 build: use the exported config for libdispatch
Pass along the configuration through the exported target for the standard
library.  Still pass the compiler by hand to allow building libdispatch against
just a build of the standard library.
2018-10-11 12:37:26 -07:00
Adam Thayer
965f6190f3 [i686 Linux] Bootstrap the build
Prior to this, the swift build didn’t understand what i686 is, or what to do about building it. This unblocks building, but will still run into build breaks.
2018-09-28 10:14:44 -07:00
Saleem Abdulrasool
ab56873dd5 build-script: always rebuild XCTest on non-Darwin
This should resolve SR-8826!  Ideally, we would be using CMake to tie together
all the dependent packages and get proper dependency tracking.  Currently,
change to the swift runtime do not get tracked properly, and can result in
undefined references to symbols.
2018-09-24 15:03:43 -07:00
Saleem Abdulrasool
bcbe16057f build: update the build-script-impl to limit android to ARM
Update the build-script-impl to only build the armv7 variant by default.  This
should prevent the community buildbots from failing which may not have the arm64
ICU available.
2018-09-24 10:00:27 -07:00
Saleem Abdulrasool
30a4853177 build: remove SWIFT_ANDROID_SDK_PATH
The path to the SDK can be computed from the NDK.  Do so to reduce the
parameters needed to pass to CMake.  More importantly, this will allow building
with multiple architectures simultaneously.
2018-09-24 09:54:45 -07:00
Saleem Abdulrasool
f8d27456ec Merge pull request #17180 from compnerd/xctest-cmake
build: switch to CMake for XCTest
2018-09-21 10:01:50 -07:00
Adrian Prantl
398856557e build-script: Add -t (tracing) to the dotest args. 2018-09-20 17:35:52 -07:00
Vedant Kumar
1cf16ab1f1 [build-script] Teach the lldb-xcode build how to find FileCheck (#19400) 2018-09-20 11:59:32 -07:00
mishal_shah
e14757e91e Update xcodebuild command for playground to use 'call' to support --dry-run in build-script 2018-09-19 15:30:55 -07:00
Adrian Prantl
144402631a build-script / LLDB: Stop disabling dwarf tests.
<rdar://problem/42977904>
2018-09-19 10:45:59 -07:00
Adrian Prantl
52bb02145d build-script: skip dwarf tests instead of dsym tests in LLDB testsuite
This is closer to what is actually happening.
2018-09-18 16:29:09 -07:00
Adrian Prantl
2dc6c3d9f7 build-script: Remove obsolete LLDB --skip-category.
<rdar://problem/42977904>
2018-09-18 09:24:38 -07:00
Alex Hoppen
8a6030b96b Add build-script infrastructure to build swiftSyntax in its own repository 2018-08-30 11:46:22 -07:00
Saleem Abdulrasool
519595dbb9 build: switch to CMake for XCTest
Now that XCTest has a CMake build system, use that for the non-Darwin
builds.  This sets the stage for building Foundation with CMake.
2018-08-29 10:23:07 -07:00
Saleem Abdulrasool
df208b370c build: honour the libdispatch build type
When configuring libdispatch as part of the swift build on Linux with SourceKit
enabled, we would default to a release build.  However, that results in known
leaks being reported with LSAN when building with a debug standard library.
Pass along the `LIBDISPATCH_BUILD_TYPE` into the CMake build and map that to the
CMAKE_BUILD_TYPE for the project.
2018-08-22 11:16:03 -07:00
swift-ci
26b972e2f7 Merge pull request #18653 from JohnCoatesOSS/pkg_config-clobber-fix 2018-08-20 12:29:49 -07:00
Adrian Prantl
f3ca06342d Remove accidentally committed debugging code 2018-08-20 10:27:38 -07:00
Adrian Prantl
2f33dfa5e6 Add build-script support for the Swift LLDB backwards-compatibility tests.
rdar://problem/36031890
2018-08-17 17:35:11 -07:00
Vedant Kumar
b98667dc55 [build-script] Disable the 'swiftpr' lldb test whitelist (#18714)
This change makes the bots run all swift lldb tests during PR testing
instead of only running a whitelisted set of tests. This will increase
coverage of lldb during PR testing and catch breaking changes earlier.

When this change lands, it's possible that flaky lldb tests may block
swift PRs from landing. We plan on filing bugs for these tests, skipping
them, and re-enabling them as soon as possible.

rdar://42984532
2018-08-14 16:51:14 -07:00
John Coates
d60ce235d9 [build-script] Don't clobber PKG_CONFIG_PATH
Overwriting this variable can cause the build to break when pkg-config tries to find packages that aren't ICU. Prepending the ICU path so it takes precedence is a less fragile solution.
2018-08-11 21:19:31 +03:00
Fred Riss
afba7cd2c0 Force teh deployment target of LLDB to 10.13
instead of infering 10.14 from the used SDK.

rdar://43011380
2018-08-09 09:51:52 -07:00
Jonas Devlieghere
1b6d8d0318 [build-script] Generate JUnit results from lit for LLDB
By switching to lit to run the LLDB tests we need to specify where to
generate the results.
2018-08-08 08:29:39 -07:00
Vedant Kumar
f2977cfdde [build-script] Build LLDBUnitTests before running lldb's lit suite
This change increases test coverage of lldb in its cmake configuration
by ensuring that its unit tests are built and ready to run. There is
similar logic to build the unit tests for the xcodebuild configuration.
2018-07-31 17:43:29 -07:00
Davide Italiano
7bd1a0321d [build-script] Pass -rpath to dotest on Linux.
Fixes a couple of test failures on master-next.
2018-07-31 18:20:47 +00:00
swift-ci
fde64d91a9 Merge remote-tracking branch 'origin/master' into master-next 2018-07-11 18:59:53 -07:00
Ankit Aggarwal
4c79a12d19 [build-script] Link llbuild with SwiftPM
Pass the neccessary flags to llbuild with SwiftPM
2018-07-11 17:12:34 -07:00
swift-ci
9fbd91e8ba Merge remote-tracking branch 'origin/master' into master-next 2018-07-09 15:09:41 -07:00
David Hart
335290e397 Install llbuild swift bindings 2018-07-07 13:55:03 +02:00
swift-ci
68f92a5cc0 Merge remote-tracking branch 'origin/master' into master-next 2018-07-05 16:20:09 -07:00