Commit Graph

1328 Commits

Author SHA1 Message Date
Michael Gottesman
644005dd5f [cmake] Remove the code needed to support USR dtrace probes. We do not use them anymore. 2016-02-26 15:55:41 -08:00
Dmitri Gribenko
0d307d498d Merge pull request #1426 from modocache/build-script-skip-builds-tests-linux
[build-script] Skip option for non-Darwin stdlib tests
2016-02-23 22:25:00 -08:00
Dmitri Gribenko
225497dfc4 Merge pull request #1316 from modocache/build-script-impl-xctest
[build-script] Build & test XCTest (on OS X, too)
2016-02-23 22:24:12 -08:00
Brian Gesiak
213d81dcbe [build-script] Skip option for non-Darwin stdlib tests
It's possible to cross-compile for iOS while skipping stdlib tests
on OS X:

```
$ utils/build-script --ios -- --skip-test-osx
```

The same is not possible on Linux. Add options to skip builds and
tests on non-Darwin platforms: Linux, FreeBSD, and Cygwin.
2016-02-23 23:48:51 -05:00
Dave Abrahams
887c3bbe82 build-script: let distcc dictate parallelism 2016-02-22 18:57:41 -08:00
Han Sangjin
e06c7136cb Porting to Cygwin. rebased and squashed 2016-02-22 13:20:21 +09:00
Dmitri Gribenko
50e52c2890 Merge pull request #1356 from dgrove-oss/libdispatch-tweak-build-for-CI
libdispatch: also build tests during build phase
2016-02-19 08:56:12 -08:00
Brian Gesiak
ac5f7c7326 [build-script] Build & test XCTest (on OS X, too)
Allow swift-corelibs-xctest to be built and tested on Linux and OS X,
via `utils/build-script --xctest --test`.

On OS X, XCTest is built via `xcodebuild`, which has been possible since
https://github.com/apple/swift-corelibs-xctest/pull/47. It's tested via
the "SwiftXCTestFunctionalTests" Xcode target. Keep in mind that
`xcodebuild` must be configured on the host machine to use a Swift
toolchain that can build XCTest--as of
https://github.com/apple/swift-corelibs-xctest/pull/48, that would be
`swift-DEVELOPMENT-SNAPSHOT-2016-02-08` or later.

On Linux, XCTest is built and tested via the project's
`build_script.py`, which has been possible since
https://github.com/apple/swift-corelibs-xctest/pull/46.
2016-02-19 00:09:57 -05:00
Michael Gottesman
d10af7657b [build-script] Add in a build-script-impl option for -DSWIFT_ENABLE_LTO. 2016-02-18 02:18:15 -08:00
William Dillon
d0d9b1de5a Discard swift.ld and support gold linker 2016-02-17 17:47:35 -08:00
David Grove
196f8baea0 libdispatch: also build tests during build phase
A tweak to match the Swift CI pattern; build
the test cases during the build phase.
2016-02-17 21:08:54 +00:00
Dmitri Gribenko
5c59362688 Merge pull request #1267 from modocache/sr-237
[SR-237][build-script] Migrate more of build-script-impl to Python
2016-02-16 08:52:10 -08:00
Luke Larson
d4ece4b4d0 [benchmark] Correctly depend on stdlib targets 2016-02-15 17:22:07 -08:00
Brian Gesiak
120ec99be5 [build-script] Archive symbols in Python
Rather than archiving symbols at the very end of the build-script-impl
shellscript, do so at the end of the Python build-script. A small step towards
achieving SR-237.
2016-02-15 12:58:09 -05:00
Brian Gesiak
3821e6ef76 [build-script] Set TOOLCHAIN_PREFIX in Python
Rather than setting the path to the .xctoolchain in the build-script-impl
shellscript, do so in the Python build-script. A small step towards
achieving SR-237.
2016-02-15 10:48:46 -05:00
Brian Gesiak
d717f8f9d7 [build-script] Set INSTALL_PREFIX in Python
Rather than setting a default value for the INSTALL_PREFIX in the
build-script-impl shellscript, do so in the Python build-script. A small step
towards achieving SR-237.
2016-02-15 10:48:45 -05:00
Brian Gesiak
3b61ad3086 [build-script] Migrate "SHOW_SDKS" to Python
Rather than printing `xcodebuild` version information in the
build-script-impl shellscript, do so in the Python build-script. A small step
towards achieving SR-237.
2016-02-15 10:48:45 -05:00
Brian Gesiak
8012b1c4e2 [build-script] Migrate "SKIP_BUILD" to Python
Rather than determining which builds to skip in the build-script-impl
shellscript, do so in the Python build-script. A small step towards
achieving SR-237.
2016-02-15 10:48:45 -05:00
Brian Gesiak
64b93aa582 [build-script] Determine BUILD_NINJA in Python
Rather than determining whether to build Ninja in the build-script-impl
shellscript, do so in the Python build-script. A small step towards achieving
SR-237.
2016-02-15 10:48:41 -05:00
practicalswift
9eb2ee0638 [gardening] Fix accidental double spaces 2016-02-14 17:30:44 +01:00
Dmitri Gribenko
a27bea046a Merge pull request #1212 from dgrove-oss/libdispatch_build_plumbing
Next step in connecting libdispatch and foundation builds
2016-02-11 13:46:50 -08:00
Jordan Rose
1b8caf5998 [CMake] Add an option to compile the stdlib resiliently.
The short-term goal here is to get everything compiling and all the tests
passing.
The mid-term goal is to test the performance of a resilient stdlib.
The long-term goal is to make this the default (and only) build mode.

This should be considered EXPERIMENTAL; we can't even build libSwiftCore
successfully yet.
2016-02-09 16:32:45 -08:00
Luke Larson
0356ec8ec3 Add Swift Benchmark Suite 2016-02-08 10:47:58 -08:00
David Grove
05d4aa0ba6 Next step in connecting libdispatch and foundation builds
Three small changes for building libdispatch and foundation together.
  (1) Put libdispatch into PRODUCTS before foundation
  (2) Pass path to swift down into libdispatch build
  (3) Pass paths to libdispatch down into foundation build
2016-02-05 23:25:53 +00:00
Dmitri Gribenko
27be1ab257 build-script: allow to run host-side iOS tests
This change allows to easily run iOS tests that require only running the
compiler, and don't require running the generated code.
2016-02-04 17:19:12 -08:00
Dmitri Gribenko
7ffa8a4198 build-script: remove old cmark migration code 2016-02-04 10:27:20 -08:00
Dmitri Gribenko
b728b89b9d Merge pull request #1126 from harlanhaskins/profdata-merge
[coverage] Automatic merger for LLVM profile data
2016-02-03 11:02:47 -08:00
Dmitri Gribenko
60ae70ce68 Merge pull request #1175 from apple/force-use-libcxx-on-darwin
build-script: force LLVM to use libc++ on Darwin
2016-02-02 17:54:05 -08:00
Mishal Shah
0998f4d10d Swift toolchain build script should require alias and identifier parameters
rdar://problem/23580778
2016-02-02 15:36:13 -08:00
Dmitri Gribenko
79fdc7831d build-script: force LLVM to use libc++ on Darwin
rdar://problem/24452118
2016-02-02 15:04:16 -08:00
William Dillon
ab7c87e7e8 Implemented ARMv6 and fixed up ARMv7 2016-01-29 21:41:22 +00:00
Harlan Haskins
e997fc3ae3 [coverage] Changed 'none' to 'false' for coverage default 2016-01-28 11:23:59 -08:00
Harlan Haskins
bb8160a092 [coverage] Declared SWIFT_ANALYZE_CODE_COVERAGE in CMakeLists and documented options for build-script flag. 2016-01-28 10:35:39 -08:00
Harlan Haskins
9fccf5058a [coverage] Fixed conflicts with master 2016-01-28 10:05:38 -08:00
Dmitri Gribenko
aeeb9c1325 Move collection testing code from StdlibUnittest to a new library
This brings down StdlibUnittest build time to 90 seconds with either
a DebugAssert or a ReleaseAssert compiler.

The new library, StdlibCollectionTests, is only built when running
validation tests.
2016-01-26 18:58:03 -08:00
Harlan Haskins
a41ec1a6f7 [coverage] Cleaned up argument parsing for swift coverage, and hooked into build-script to propagate the different values 2016-01-25 19:49:03 -08:00
Harlan Haskins
eb27ca1e2e [coverage] Initial commit of profdata merging worker 2016-01-25 19:49:03 -08:00
Brian Gesiak
c1a746bc92 [build-script] There can only be one host target
`build-script-impl` currently maintains a list of
`NATIVE_TOOLS_DEPLOYMENT_TARGETS` -- host machine targets, for which
the resulting binaries can be run on the current machine.

However, there is only ever *one* host machine. This commit:

- Changes the `NATIVE_TOOLS_DEPLOYMENT_TARGETS` list parameter into a
  single string parameter, `HOST_TARGET`.
- Promotes the logic to detect the host target to Python, and places it
  in the `swift_build_support` module.
- Removes the hard-coded "macosx_x86_64" path to the LLVM and Clang
  TableGen -- thereby unblocking future work to make cross-compilation
  possible on platforms other than OS X.
- Also promotes cross-compilation target validation to Python, placing
  it in the `swift_build_support` module.
2016-01-24 11:48:09 -05:00
Erik Eckstein
8b840364ff tab -> space 2016-01-23 14:15:09 -08:00
Erik Eckstein
716d0d7c17 Add a build option to compiler StdlibUnittest with -sil-serialize-all
This is the configurable version of 29214253e5
By default it's off.
2016-01-22 17:12:31 -08:00
David Grove
06860a4d01 Initial integration of libdispatch into build-script
Extend build-script, build-script-impl, and update-checkout
to include libdispatch.  For now, libdispatch is not
built by default (user must enable via command line
argument).

Integration of testing is functional, but should be improved
in a later pull request.  The basic autotools based test
harness does not give the nice high-level progress output
as the rest of the test suite.

A related pull request to libdispatch (#34) has some fixes
to the autotools build that are needed to enable the test
target to succeed when run in an external directory.
2016-01-21 19:22:45 +00:00
Dmitri Gribenko
a74355426e Merge pull request #1008 from modocache/build-script-sil-verify-all
[build-script] Unify naming: `SIL_VERIFY_ALL`
2016-01-20 00:40:15 -08:00
lplarson
534a19117b Merge pull request #997 from lplarson/code-coverage
[CMake] Support code coverage analysis
2016-01-19 20:10:42 -08:00
Dmitri Gribenko
3cf4dd36a1 Update language version to 3.0 2016-01-19 19:59:05 -07:00
Luke Larson
ba619a9ff2 [CMake] Support code coverage analysis 2016-01-19 18:51:07 -08:00
Mishal Shah
61962c4b69 Remove DYLD_LIBRARY_PATH from Swift toolchain Info.plist
rdar://problem/23539092
2016-01-19 11:04:44 -08:00
Brian Gesiak
cad395bf3b [build-script] Unify naming: SWIFT_SIL_VERIFY_ALL
Although the user sets the option using `--sil-verify-all`, various
build scripts refer to the option as `SWIFT_VERIFY_ALL`. Code comments
indicate that this may have been a separate setting at one time.

Remove the misleading comments and unify naming with
`--sil-verify-all` and `SWIFT_SIL_VERIFY_ALL`. This more closely matches what
the option actually does (adds `-Xfrontend -sil-verify-all` to `swiftc`
invocations during the build process).
2016-01-19 11:11:39 -05:00
Anton Blanchard
b1827d8a8f Add powerpc64le Linux support
This patch adds powerpc64le Linux support. While the patch also adds
the matching powerpc64 bits, there are endian issues that need to be
sorted out.

The PowerPC LLVM changes for the swift ABI (eg returning three element
non-homogeneous aggregates) are still in the works, but a simple LLVM
fix to allow those aggregates results in swift passing all but 8
test cases.
2016-01-15 06:48:31 +00:00
Todd Fiala
b6bc2667a9 lldb build: allow optional xcodebuild flags to be passed to build-script-impl 2016-01-14 10:00:50 -08:00
Brian Gesiak
e1312f41ec [build-script] Remove unused function
`is_native_tools_deployment_target` is never used. Remove it.
2016-01-12 16:54:07 -08:00