Commit Graph

1328 Commits

Author SHA1 Message Date
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
Jonas Devlieghere
16e0631aab [build-script] Pass dotest arguments to lit
Pass the dotest arguments to lit and run the full test suite.
2018-07-05 02:45:42 -07:00
Jonas Devlieghere
922ab4bbf4 [build-script] Don't run lit tests separately
With the recent changes upstream we use lit as the test driver for CMake
based builds. Instead of invoking lit and dotest separately, we need to
pass the dotest arguments to lit and have it take care of everything for
us.
2018-07-04 08:52:27 -07:00
Connor Wakamo
5d8b6ad926 [build-script] Updated build-script-impl to be able to run the tests for the new PlaygroundLogger.
Switched to using `build-for-testing`/`test-without-building` for the PlaygroundLogger tests.
The new PlaygroundLogger tests are now a proper XCTest unit test bundle, so it needs to be done this way (instead of building the test runner and then just invoking that).

This is part of <rdar://problem/37765445>.
2018-06-28 10:24:01 -07:00
Jordan Rose
87e9b85683 [test] Handle an Xcode path with spaces in it (#17161) 2018-06-12 18:21:45 -07:00
Mishal Shah
3f8ce7d2f9 Update master to build with Xcode 10 beta 1, OS X 10.14, iOS 12, tvOS 12, and watchOS 5 SDKs. 2018-06-04 23:14:19 -07:00
Michael Gottesman
62adeb6b9d [build-script] Add some sanity to how we trigger benchmarks being built.
Specifically:

1. SKIP_TEST_BENCHMARK => SKIP_TEST_BENCHMARKS

I looked for --skip-test-benchmark (notice no s) and SKIP_TEST_BENCHMARK. It
seems like it is dead, especially since we have --skip-test-benchmarks.

2. Remove the code that works around SKIP_TEST_BENCHMARK typo.
2018-05-30 14:22:23 -07:00
David Hart
196d79cc34 Merge pull request #15375 from hartbit/llbuild-swift-bindings
Enable building llbuild swift bindings
2018-05-06 18:11:06 +02:00
David Hart
859c68b676 Enable building llbuild swift bindings 2018-05-03 20:51:52 +02:00
Nathan Lanza
7429856034 Change various search and linker paths to account for changes in NDK16
ndk14 introduced "unified headers" which merged the headers for all
different API versions into one directory which effectively split the
"SWIFT_SDK_ANDROID_ARCH_${ARCH}_PATH" into two different directories.

Add include and library specific paths to various compilation and link
invocations across the Swift project to account for this change. Remove
some broken sysroot/sdk specific settings.
2018-05-02 14:18:11 -07:00
Mike Ash
82c4929395 [Runtime] Disable mangled name verification when running PlaygroundLogger tests.
rdar://problem/37551850
2018-04-27 17:15:50 -04:00
Mike Ash
91619c4cd0 [Runtime] Make mangled name roundtrip verification a soft failure. Disable it entirely when running tests and when bootstrapping swiftpm, for now.
rdar://problem/37551850
2018-04-27 10:09:06 -04:00
Michael Gottesman
6e20a6da44 [integration-tests] Specify path to the llvm bin dir instead of filecheck itself.
We can infer FileCheck's path from the llvm bin dir so there is no change today.
In the future though this will enable us to use other llvm tools to "poke" at
the produced snapshots for verification purposes.

rdar://39456714
2018-04-22 15:26:20 -07:00
Davide Italiano
36f968d9ad [build-script] Disable watchpoint testing in lldb.
Stopgap solution until we have an option we can pass to the
bots. Hopefully will make the bots green again.
2018-04-05 17:36:39 -07:00
Adrian Prantl
c35d00f193 build-script / lldb: rename SWIFTCC -> SWIFTC 2018-03-23 10:55:45 -07:00