Tim Kientzle
e1163c0f19
Add -a/--no-asserts option to build a no-asserts (production) toolchain
2024-04-11 12:37:36 -07:00
Michael Gottesman
470b874975
[build-toolchain] Add the ability to specify that a toolchain should only build macOS.
...
This is useful when one only has to repro something on macOS, needs a toolchain,
and wants to save some build time.
2024-03-27 10:54:59 -07:00
Josh Soref
7a889a820d
spelling: against
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
2022-09-15 19:43:36 -04:00
Egor Zhdan
d02acffd7e
[build] Update Swift version in Info.plist for locally built toolchains
...
Currently for toolchains built locally via `build-toolchain`, the version in `Info.plist` is `5.0.YYYYMMDD`.
Since the main branch is currently targeting Swift 5.8, let's bump the version in `Info.plist`.
2022-06-20 17:53:27 +01:00
Doug Gregor
daa93dc101
Revert "Infer a reasonable build subdirectory when building a toolchain"
...
This reverts commit 73a135307e .
2021-09-10 11:41:23 -07:00
David Rönnqvist
7548472dc8
Reduce duplication in toolchain argument parsing
2021-09-07 11:44:13 -07:00
Doug Gregor
73a135307e
Infer a reasonable build subdirectory when building a toolchain
...
build-script-impl effectively ignores the `install_destdir` provided to
it by build-toolchain, and uses something based on the build subdir
instead. But build-script products do follow `install_destdir`, so
make `build-toolchain` provide something closer to correct.
2021-08-27 22:31:20 -07:00
Cassie Jones
e01893cb56
[build-script] Add a flag for sccache
...
This adds a flag to enable sccache in order to simplify the build-script
invocation, particularly for new contributors.
2020-09-30 16:49:34 -04:00
Michael Gottesman
e022a952ca
[build-toolchain] Add distcc like integration for using sccache.
...
Disabled by default.
2020-09-26 17:39:35 -05:00
Michael Gottesman
af4199e4f6
[build-toolchain] Add an option to control if code built by the toolchain links by default to the OS runtime or the toolchain runtime.
...
Today by default, we always link against the runtime runtime. This option just
lets our users decide what they want, but leaves the defaults alone.
2020-08-31 11:06:46 -07:00
Michael Gottesman
479a148c23
[build-toolchain] Add the ability to specify a prefix to prepend to the specific toolchain preset invoked.
2020-08-18 01:09:32 -07:00
Michael Gottesman
cf7c237489
[build-toolchain] Add support for specifying a preset file.
2020-08-18 01:06:56 -07:00
Dan Zheng
2e7e81e22a
Make utils/build-toolchain compatible with Xcode new build system. ( #29025 )
...
Xcode's new build system requires the Version entry in Info.plist to have a
particular date-based format.
Toolchains built using utils/build-toolchain now work with Xcode's new build
system.
2020-01-06 16:05:38 -08:00
John Holdsworth
0a6de02fb9
Correct OS suffix for Linux
2019-01-03 18:33:03 +00:00
John Holdsworth
d5deefa744
Fix problem preventing new build system from using custom toolchains ( #19509 )
2018-10-04 10:55:59 -07:00
Mishal Shah
63c9cb930f
Merge pull request #16992 from marcrasi/toolchain-results-in-current-directory
...
put build-toolchain results in directory that it is called from
2018-06-07 14:09:10 -07:00
Marc Rasi
7640a95dca
put build-toolchain results in directory that it is called from
2018-06-04 23:36:21 +00:00
Michael Gottesman
971630b6fc
Teach build-toolchain how to pass distcc down to build-script.
...
This just causes build-toolchain to pass --distcc to build-script.
2018-06-03 19:42:43 -07:00
Arnold Schwaighofer
269f8c1dd7
build-toolchain: Use the same behavior on macOS as we do on Linux
...
The default is to run no tests. If you want to run tests you need to pass -t (--test).
2018-03-22 09:41:36 -07:00
Arnold Schwaighofer
fa40f7ac4c
Add a --no-test option to build-toolchain
...
Builds a toolchain without running tests on macos.
2018-03-22 08:59:50 -07:00
Dan Liew
046fb4128e
Improve usability of build-toolchain script. ( #14785 )
...
This script improves several things:
* Previous it was incredilby easy to accidently mis-use the script. For
example running `build-toolchain -n` would set `BUNDLE_PREFIX` to `-n`.
The new implementation of command line argument parsing is less fragile
and easier to extend.
* Provides `--help` (or `-h`) output.
* Prints the value of several environment variables before running
`build-script`.
* Shows the invocation of `build-script`.
The accepted order of command line arguments has not changed to avoid
breaking existing users of the script.
2018-02-23 09:16:44 -08:00
Amr Aboelela
3550787f37
Added -t switch
2017-08-31 10:26:42 -07:00
Amr Aboelela
0c7d3e4fb3
In Linux setting SWIFT_PACKAGE=buildbot_linux,no_test as the test takes very long time
2017-08-31 00:05:42 -07:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Rintaro Ishizaki
552590eee6
[build-script] Introduce -n, --dry-run feature
...
If -n or --dry-run is specified in command line arguments, print the commands
that would be executed to stdout, but do not execute them.
Supported in build-script and build-toolchain.
utils/build-script -n -Rt
utils/build-script -n --preset=buildbot_incremental,tools=RA,stdlib=RA
utils/build-toolchain -n local.swift
2016-05-31 12:45:05 +09:00
Mishal Shah
9c5c5de889
[Toolchain] properties for ShortDisplayName and CreatedDate
2016-04-21 14:11:39 -07:00
practicalswift
6ed6b6671e
[gardening] Use '#!/usr/bin/env bash' instead of '#!/bin/bash'
...
Before this commit:
```
$ git grep '#!/usr/bin/env bash' | wc -l
10
$ git grep '#!/bin/bash' | wc -l
1
```
After this commit:
```
$ git grep '#!/usr/bin/env bash' | wc -l
11
$ git grep '#!/bin/bash' | wc -l
0
```
2016-03-15 11:34:35 +01:00
John Holdsworth
abf2e67ed9
Fix #! typo
2016-03-14 23:07:15 +00:00
practicalswift
ff259d3709
[build] Remove unused variables. Improve error handling.
2016-03-11 07:22:47 +01:00
John Holdsworth
0a876fa424
Add script to build toolchain
2016-03-10 22:30:54 +00:00