Commit Graph

193 Commits

Author SHA1 Message Date
practicalswift
cb3a67f477 Fix typo: buildling → building 2015-12-14 00:11:19 +01:00
Dmitri Gribenko
f28d34845c Merge pull request #439 from hpux735/master
Beginning support for ARMv7 hosts (RasPi, etc.)
2015-12-13 00:10:20 -08:00
William Dillon
4bf81e09da Build working on ARMv7l 2015-12-12 22:06:13 -08:00
Dmitri Gribenko
2882816e59 Merge pull request #456 from djwbrown/djwbrown-swift-build-script-impl
[build-scripts] Check for empty array and `skip-test-swift` argument before printing.
2015-12-12 19:58:03 -08:00
Dmitri Gribenko
cc26d70f4e build-script: fix indentation 2015-12-12 18:22:15 -08:00
Dmitri Gribenko
a58f233666 build-script: don't run 'git', we have update-checkout for that 2015-12-12 18:21:46 -08:00
Dmitri Gribenko
c576afe91c build-script: add migration code for the cmark repository 2015-12-12 18:16:54 -08:00
Dylan Brown
4f1d82fe7e [build-scripts] Add condition to check for skip-test-swift argument.
Currently prints 'Running Swift tests for:...' even if the skip-test-swift argument is set. Should only print this line if there are tests in the SWIFT_TEST_TARGETS array and they will not be skipped.
2015-12-12 22:46:38 +02:00
Dylan Brown
7c13902bdb [build-scripts] Test for empty array before printing it.
In the case some SKIP_TEST_* flag is set, and test_this_target is False for all targets, then SWIFT_TEST_TARGETS will be an empty array. Avoid printing 'Running Swift tests...' with an empty array.
2015-12-12 21:25:39 +02:00
halfnelson
37840dbc4f cmark c flags should derive from cmark build type 2015-12-11 21:57:23 +10:00
Dmitri Gribenko
e871424806 Merge pull request #169 from GuillaumeBibaut/patch-1
FreeBSD: Search for newest clang compatible candidate
2015-12-11 00:04:44 -08:00
Guillaume Bibaut
5690a1b838 Search for clang based on Swift requirements 2015-12-11 08:43:14 +01:00
Mishal Shah
e065b6e0af Add support for swift alias in Info.plist
rdar://23580681
2015-12-10 19:54:52 -08:00
Luke Larson
5d1c6e16a0 [build-script] Support perf tests on additional platforms 2015-12-10 14:54:59 -08:00
Todd Fiala
284736cd00 Swift LLDB: allow static Python bindings on non-Darwin by default
This eliminates the need for the swig binary to be present.
This was already the case for OS X, but required extra cmake
arguments for cmake LLDB builds.
2015-12-08 16:47:39 -07:00
Dmitri Gribenko
a3c92e1b0d Remove build options for conditionally enabling targets
* We don't have a use-case for this.

* Swift, like Clang, is fundamentally a cross-compiler, and there is no
  known reason to artificially limit it.
2015-12-04 16:04:35 -08:00
Meador Inge
c4052ebfbd Add a way to specify the number of build jobs
This change adds a '-j' option to the top-level
build script.  The computed defaults may not
always be suitable.

Tested by building for Ninja (default), Make (-m), and XCode (-x).
I also verified the jobs count via a process monitor.
2015-12-04 15:36:00 -06:00
Mishal Awadah
d92e332cd0 [build-script] Enable package testing on OS X builders. 2015-12-04 12:56:56 -08:00
Meador Inge
769f1273b3 Fix Makefile builds
This commit fixes two problems exposed by Makefile builds
(-m): (1) the cmark library directory is wrong and (2) the
COMMON_CMAKE_OPTIONS are not quoted when building swift (thus
"Unix Makefiles" ends up as two command line arguments).

Tested by building for Ninja (default), Make (-m), and XCode (-x).
2015-12-04 09:51:40 -06:00
Adam Treat
f4c341275b Query linux for number of processing units for make parallelism 2015-12-03 16:37:14 -05:00
James McLaughlin
440a052a38 Add FreeBSD cases in build script 2015-12-03 21:06:36 +00:00
James McLaughlin
9da5899652 Consistently use env(1) to resolve bash and python paths 2015-12-03 20:55:27 +00:00
Daniel Dunbar
ff70f62e16 [utils] Change llbuild install to specifically only install swift-build-tool. 2015-12-03 10:13:32 -08:00
Tom Parker
54c3ab9484 Fix cmark checkout path
git@github links only work if you've got write permissions to the
repository
2015-12-03 17:30:18 +00:00
Mishal Awadah
6ed3e9424e [build-script] Add a heading for Foundation tests in the output. 2015-12-01 17:07:57 -08:00
Mishal Awadah
22926f3483 [build-script] Add support for testing swiftpm. 2015-12-01 17:07:28 -08:00
Ben Langmuir
76be22c3cc Manually set the deployment target for Darwin Ninja bootstrap builds
Unlike our cmake-based builds we weren't setting an explicit target
triple or deployment target, which left us open to the vagaries of the
environment.
2015-12-01 15:34:40 -08:00
Dmitri Gribenko
4324e7c903 Remove conditional compilation of tvOS 2015-12-01 14:43:45 -07:00
Mishal Shah
1cc28c769e Default toolchain install location changed to /Library 2015-11-30 14:50:52 -08:00
Daniel Dunbar
5176fea596 [utils/build-script] Pass --xctest override path to SPM build, when building xctest. 2015-11-30 12:14:04 -08:00
Tony Parker
32f8492936 Change recommended name of checkout directory for Foundation and XCTest 2015-11-30 08:09:45 -08:00
Mishal Shah
bc42387848 Create swift-latest symlink in darwin installer 2015-11-25 18:20:07 -08:00
Ted Kremenek
b2fd1ec462 Default toolchain install location to ~/Library instead of /Library. 2015-11-24 23:15:36 -08:00
Mishal Shah
891f9e8bdd Fix comment 2015-11-23 19:54:54 -08:00
Mishal Shah
cba563c7d6 Cleaning up code:
- Add darwin_ prefix to preset variables
 - Add license header to utils/toolchain-codesign and utils/toolchain-installer
 - Simplify the logic to remove Info.plist
2015-11-23 17:52:17 -08:00
Mishal Shah
4c0c8dfe40 Add DARWIN prefix to TOOLCHAIN_INSTALL_LOCATION 2015-11-23 15:48:05 -08:00
Mishal Shah
970a0a29aa Remove the old Info.plist if it already exists before creating new one 2015-11-23 15:48:05 -08:00
Mishal Shah
ffcfca6285 Fix Toolchain path in build script 2015-11-23 15:48:05 -08:00
Mishal Shah
7885cc0080 Add darwin prefix to toolchain var in build script 2015-11-23 15:48:05 -08:00
Mishal Shah
9e5e40801c Add support to create xctoolchain with code sign 2015-11-23 15:48:04 -08:00
Ted Kremenek
ae3dc8de2c Merge pull request #8 from phausler/FoundationConfigureSimplification
Simplify configure pass for Foundation to use a defined variable for XCTest's build directory
2015-11-20 18:16:13 -08:00
Todd Fiala
29fdaa4302 LLDB build: pass along several version-related variables. 2015-11-20 16:52:18 -08:00
Philippe Hausler
1b966c8e9c Simplify configure pass for Foundation to use a defined variable for XCTest's build directory 2015-11-20 14:25:02 -08:00
Mishal Awadah
215bdc0aba Merge pull request #4 from phausler/FoundationBuildScripts
install Foundation via the ninja script and add the test phase for Foundation
2015-11-19 11:39:53 -08:00
Philippe Hausler
7d181616a5 Add additional swiftc flags for adding the XCTest module path when configuring Foundation
This allows for the unit tests to properly find the module map file for
XCTest; this requires Foundation commit 3effff to properly forward the
extra swiftc flags to building the unit tests.
2015-11-19 07:35:49 -08:00
Todd Fiala
fa421c7cb0 Strip swig build support out of the Swift build script. 2015-11-18 23:22:04 -08:00
Dmitri Gribenko
4cb6069285 build-script: run dsymutil and strip -S on the whole toolchain
LLDB installs a directory <toolchain>/System, and we weren't processing
it with dsymutil and strip.

rdar://23599629
2015-11-18 23:12:29 -08:00
Philippe Hausler
159eab1e24 install Foundation via the ninja script and add the test phase for Foundation
The configuration script for Foundation respects debug and release builds so a new option for foundation-build-type has been added to control the build variant of Foundation.
Resolve the FIXME for adding a mechanism for a custom invocation of running the Foundation unit tests
Foundation now has an install target provided from the generated ninja script such that the potentially error prone install script is dramatically simplified into a single encapsulation of a ninja phony target of "install"; so adopt this new target for installation
2015-11-18 14:59:17 -08:00
Daniel Dunbar
d9ae1565e8 [utils] Factor out command line setup of swiftpm bootstrap command. 2015-11-18 12:23:42 -08:00
Ted Kremenek
4c12a1278a Bump Swift version to '2.2'. 2015-11-17 22:19:33 -08:00