Commit Graph

246 Commits

Author SHA1 Message Date
swift-ci
a7fc8ac913 Merge remote-tracking branch 'origin/master' into master-next 2017-04-28 14:08:31 -07:00
Ted Kremenek
7c664d1835 Bump default version in build script. 2017-04-19 13:02:09 -07:00
swift-ci
bed8336b4e Merge remote-tracking branch 'origin/master' into master-next 2017-04-05 09:48:31 -07:00
Hugh Bellamy
36645a0976 Address FIXMES for cleaning up imports in build-script and friends 2017-04-01 09:54:01 +07:00
swift-ci
b5f58e7763 Merge remote-tracking branch 'origin/master' into master-next 2017-03-30 15:08:31 -07:00
Michael Gottesman
e3858d304c [build-script] Use the build-script-impl from the swift repo that invoked build-script.
In the past if one wanted to be able to develop using multiple swift repos, one
was often stymied by build-script always using build-script-impl from the swift
directory. This includes the case where one invokes the build-script from a
hypothetical directory called swift-2.
2017-03-30 14:32:54 -07:00
swift-ci
bf5fae93d1 Merge remote-tracking branch 'origin/master' into master-next 2017-03-29 18:28:30 -07:00
Bob Wilson
d23be6e3de [build-script] Set the TOOLCHAINS variable in the environment.
On Darwin platforms, the Swift build scripts generally use "xcrun" to
locate various tools, and the build-script's darwin-xcrun-toolchain option
is specified to xcrun. However, with the change to use the just-built clang
to build the runtime (PR #6112), there was an issue with the linker. Clang
normally tries to run the linker from the same directory as the clang
binary, but when there isn't one, it falls back on /usr/bin/ld, which is
just an xcrun-like wrapper. Since there is no way to specify an explicit
toolchain option in that case, set TOOLCHAINS in the environment to
make it use the linker from the specified toolchain.
rdar://problem/30709330
2017-03-29 17:29:16 -07:00
swift-ci
4ed594bf88 Merge remote-tracking branch 'origin/master' into master-next 2017-03-26 20:28:53 -07:00
Michael Gottesman
912a162e57 [build-script] Give ubsan, tsan the same treatment I gave asan in 824ffa6857. 2017-03-26 20:07:14 -07:00
swift-ci
101f3448b3 Merge remote-tracking branch 'origin/master' into master-next 2017-03-22 20:28:43 -07:00
Doug Coleman
e7390d1770 Revert "utils: Add swiftenvs, which allow the overriding of compiler tools."
This reverts commit 2b923f3846.
2017-03-22 20:09:34 -07:00
swift-ci
94b99619e8 Merge remote-tracking branch 'origin/master' into master-next 2017-03-22 17:08:53 -07:00
Doug Coleman
e480227d82 Revert "swiftenv-script: Fix some issues with swiftenvs." 2017-03-22 17:00:21 -07:00
swift-ci
a5a00d3979 Merge remote-tracking branch 'origin/master' into master-next 2017-03-22 13:28:44 -07:00
Doug Coleman
351a515f6c swiftenv-script: Bug fixes for swiftenv.
Fix the mocked output files of swiftc. Change the lookup of
clang from build-script to build-script-impl like all the other
commands. Pass more args to LLVM. Fix swiftenv creation. Fix unit tests.

The reason this patch works is that build-script-impl gets
all the arguments that are not handled by build-script.
2017-03-22 12:47:33 -07:00
swift-ci
46555ae563 Merge remote-tracking branch 'origin/master' into master-next 2017-03-21 16:48:43 -07:00
Doug Coleman
2b923f3846 utils: Add swiftenvs, which allow the overriding of compiler tools. 2017-03-21 14:59:12 -07:00
swift-ci
44175c566b Merge remote-tracking branch 'origin/master' into master-next 2017-03-17 00:28:50 -07:00
Hugh Bellamy
c6fcbf0510 Python lint a bunch of files not currently python linted 2017-03-17 14:11:00 +07:00
swift-ci
5a5f35c67f Merge remote-tracking branch 'origin/master' into master-next 2017-03-14 20:08:54 -07:00
Greg Parker
1b39852682 [build] Clean up lack of support of iOS device tests.
* Add --ios-all etc with a helpful error
  message for those who think it exists.
* Reject --ios --host-test early to avoid a cryptic
  "build target does not exist" error much later.
2017-03-14 19:49:30 -07:00
swift-ci
324ffb5cea Merge remote-tracking branch 'origin/master' into master-next 2017-02-24 11:08:49 -08:00
Doug Coleman
c1402ceb30 Merge pull request #7734 from hughbe/android-build-script-import
Cleanup android import in build-script
2017-02-24 11:00:52 -08:00
Hugh Bellamy
904ef577d2 Cleanup android import in build-script 2017-02-24 10:22:47 +07:00
Hugh Bellamy
bab7bbd283 Report a fatal error in build-script rather than build-script-impl for missing source directories 2017-02-24 08:17:02 +07:00
Hugh Bellamy
00b8913efa Fix mismatching path to ICU source in build-script and build-script-impl
build-script-impl assumes ICU is located at
```
LIBICU_SOURCE_DIR="${WORKSPACE}/icu"
```

However, build-script would try to set it to
```
<path-to-workspace>/libicu"
```

This is wrong, so fix it
2017-02-24 08:17:02 +07:00
swift-ci
c4ac13dfd9 Merge remote-tracking branch 'origin/master' into master-next 2017-02-10 17:23:42 -08:00
David Farler
76dd2a5185 Match cmark build type with swift by default
Some cmark CMake stuff changed recently and the default rules
we have in the Python build script code doesn't behave correctly
anymore, likely because it was relying on incorrect settings.

Now, by default, if the cmark build type isn't specified, it will
follow Swift's. If we don't do this, Xcode builds are broken, and
building with Xcode is important.
2017-02-10 16:47:01 -08:00
swift-ci
132bca61e3 Merge remote-tracking branch 'origin/master' into master-next 2017-02-09 10:23:33 -08:00
Hugh Bellamy
f1064e53a4 Python lint build-script 2017-02-09 18:15:08 +07:00
swift-ci
1fcfc9e47f Merge remote-tracking branch 'origin/master' into master-next 2017-02-08 19:23:37 -08:00
Doug Coleman
480e0d785b build-script: Allowing passing of libtool path to llvm. 2017-02-08 19:42:10 -07:00
swift-ci
5ea550d33a Merge remote-tracking branch 'origin/master' into master-next 2017-02-07 08:23:26 -08:00
Doug Coleman
9d0d533723 cmake/build-script: Allow passing a lipo path instead of finding it from
Xcode.
2017-02-07 03:31:09 -07:00
swift-ci
6620e6f703 Merge remote-tracking branch 'origin/master' into master-next 2017-02-05 18:29:45 -08:00
Michael Gottesman
fee2db81de [cmake] Add a new option called SWIFT_FORCE_OPTIMIZED_TYPECHECKER that forces Sema to be built optimized.
This should help speed up people trying to compile the standard library and do
SILGen work. *NOTE* This will not necessarily result in a type checker that is
as fast as a release build since most likely the type checker will use some
link_once odr functions that are debug. But it should still be significantly
faster otherwise.

This makes getting to SILGen take 16 seconds on my machine instead of forever
when compiling with everything else in the compiler in debug mode.
2017-02-05 16:48:54 -08:00
Bob Wilson
ef9fce2183 Merge remote-tracking branch 'origin/master' into master-next 2017-01-25 12:46:21 -08:00
Doug Coleman
091af4cd10 Merge pull request #7001 from natecook1000/nc-clean-delay
Add a short delay before cleaning a build directory
2017-01-24 19:07:40 -08:00
Nate Cook
02441e4e69 Add a short delay before cleaning a build
Adds a three second delay when the `-c` or `--clean` options are
given to utils/build-script, providing a chance to cancel the build
before the existing build folder is removed.
2017-01-24 13:05:40 -06:00
Bob Wilson
89393fcf27 Merge remote-tracking branch 'origin/master' into master-next 2017-01-24 09:46:30 -08:00
Bob Wilson
326e079983 master-next: update LLVM version to 5.0 to match LLVM trunk.
This continues the workaround from 7213a4d8. We should still get a better
solution that does not hardcode the LLVM version like this. That is
tracked by rdar://problem/28801735
2017-01-24 09:39:13 -08:00
Jacob Mizraji
ae5dc78c12 Make build script swift version default to 3.1 2017-01-18 11:30:47 -08:00
Bob Wilson
37e7d1c627 Merge remote-tracking branch 'origin/master' into master-next 2017-01-08 17:07:46 -08:00
practicalswift
6d1ae2a39c [gardening] 2016 → 2017 2017-01-06 16:41:22 +01:00
Bob Wilson
78b28243ff Merge remote-tracking branch 'origin/master' into master-next 2017-01-03 14:22:59 -08:00
Ankit Aggarwal
1ba5ce6774 [BuildScript] Pass build conf to swiftpm
- <rdar://problem/27791475>

SwiftPM can now be built in release mode because all the outstanding
issues preventing that has been resolved. The major issues were:

* Building (and running) unit tests with @testable import in
* release. (swiftpm PR #758)
* Linker errors when building unit tests with wmo on linux. (SR-3034)
2016-12-21 14:57:40 +05:30
Bob Wilson
deddf19aae Merge remote-tracking branch 'origin/master' into master-next 2016-12-13 10:23:03 -08:00
Michael Gottesman
a9f737c7c7 [swift_build_support] Always emit a compilation_db.
There is no reason not to do this (and it is really cheap) and I want to make
some scripts use it with various clang tooling techniques like clang-tidy to
improve code quality. This will ensure that by default people can just use these
scripts without knowing about how things are working under the hood.
2016-12-06 17:34:21 -08:00
Bob Wilson
13da3fa8b1 Merge remote-tracking branch 'origin/master' into master-next 2016-12-04 18:16:09 -08:00