Commit Graph

8541 Commits

Author SHA1 Message Date
Greg Parker
0faf18ef79 [build] In Makefiles, don't build iOS test tool if CoreAutomation is absent.
Swift SVN r13553
2014-02-06 04:12:21 +00:00
Greg Parker
cda19f0e5a Fix testing on Makefile build.
This may also make manual `lit` commands test the built macosx stdlib without
requiring extra options.


Swift SVN r13552
2014-02-06 03:42:03 +00:00
Jordan Rose
e7461848c1 Release notes: escape call to xcrun so that we don't actually run it.
The release notes this week actually put in an SDK path here. Fortunately
it's the one that matches what plenty of people are using (10.9 public SDK
from an Xcode in Applications), but it's not the best thing to use.

Swift SVN r13488
2014-02-05 18:20:38 +00:00
Chris Lattner
f278f342d9 roll my release note into next week, since it got dropped from this week and isn't fully baked anyway.
Swift SVN r13486
2014-02-05 16:56:46 +00:00
Doug Gregor
04475c6a85 Use @unchecked optionals for member references into AnyObject/AnyClass.
This eliminates the need for a number of !'s when dealing with
Objective-C APIs. Now with actual executable behavior!


Swift SVN r13483
2014-02-05 07:58:18 +00:00
Chris Lattner
617dce82b6 release note the @mutating -> mutating change.
Swift SVN r13481
2014-02-05 07:11:32 +00:00
Doug Gregor
7f3f5bc45a Reverted r13476 "Use @unchecked optionals for member references into AnyObject/AnyClass."
Some of the tests broke.


Swift SVN r13478
2014-02-05 05:39:49 +00:00
Doug Gregor
b37a50ec77 Use @unchecked optionals for member references into AnyObject/AnyClass.
This eliminates the need for a number of !'s when dealing with
Objective-C APIs.


Swift SVN r13476
2014-02-05 05:22:40 +00:00
Jordan Rose
e242ed9594 Update the "Getting Started" instructions for the new driver.
Swift SVN r13472
2014-02-05 01:58:16 +00:00
Jordan Rose
0d147821e6 [Release Notes] Document some of the new-driver changes.
The debug info caveat sounds worse than it is, since you already have to
recompile all the source files in a module when any of them change.

Swift SVN r13471
2014-02-05 01:58:16 +00:00
Dave Abrahams
aadcf6b1e4 [utils] buildbot-script.sh: LLDB compatibility
The LLDB project requires an LLVM project containing both clang and
swift, while buildbot-script builds swift outside the LLVM tree.  The
obvious choice, if you don't want two copies of the source on your
system, is to symlink swift into llvm's tools directory.  Yes, building
lldb will still build llvm and swift again, but that's a problem for
another day.  To avoid building swift a /third/ time as part of swift's
LLVM build, we need to tell the buildbot-script to ignore that symlink
if it's there.

Swift SVN r13412
2014-02-04 07:35:08 +00:00
Greg Parker
1892c003bc [test] Add test machinery for iOS, but don't use or enable anything yet.
Swift SVN r13407
2014-02-04 07:00:48 +00:00
Michael Gottesman
e775a1b745 [sil-mode] Add the LLVM header.
Swift SVN r13326
2014-02-03 00:16:08 +00:00
Dave Abrahams
32f76c2fa7 [utils] Emacs: automatically insert LLVM headers
New files automatically get the LLVM header if you enable
auto-insert-mode.  You can also generate one explicitly in any file
using `M-x llvm-header'.  Along the way, factored settings specific to
the Swift project out of swift-mode.el and put them in
swift-project-settings.el

Swift SVN r13319
2014-02-02 23:20:15 +00:00
Jordan Rose
579798393a Replace "-sdk=", "-triple=", etc. with separated options in the build systems.
Part of the migration to the new driver.

Swift SVN r13264
2014-02-01 01:19:57 +00:00
Jordan Rose
7d01643444 Don't automatically put the current directory in the include path.
Also, don't allow file-relative imports (i.e. don't consider a /source file's/
location as an include path). Both of these should be requested by the user,
at least at this point.

Swift SVN r13249
2014-01-31 23:01:08 +00:00
Jordan Rose
302f9cb50d Disallow importing other Swift source files as modules.
Because this is useful in testing, I've left in a frontend option
-enable-source-import for both swift and swift-ide-test that sidesteps the
module restriction. Right now, though, this is the right thing to avoid
users running into strange issues when they import another file within
their module and Swift treats it as a separate module.

<rdar://problem/15937521>

Swift SVN r13248
2014-01-31 23:01:04 +00:00
Joe Groff
26a9b43d9a Start collecting some DTrace types and macros to help trace runtime stuff.
Swift SVN r13219
2014-01-31 17:08:34 +00:00
Greg Parker
5f897228e0 [build] Build stdlibs for 32-bit iOS device and simulator.
Swift SVN r13200
2014-01-31 04:24:50 +00:00
Greg Parker
0370c59ec3 [build] Retire fat-script.sh.
Swift SVN r13199
2014-01-31 02:51:16 +00:00
Dave Abrahams
a8604e5045 [utils] build-script.sh: Don't build/test SourceKit by default
You can still request sourcekit by passing -s on the command-line.

Along the way, buildbot-script.sh now tolerates missing SourceKit
sources if it is being asked to skip the SourceKit build.

Swift SVN r13170
2014-01-30 20:46:42 +00:00
Joe Groff
391d9644c7 Release note 'if let'.
Swift SVN r13147
2014-01-30 10:37:41 +00:00
Jordan Rose
d0d4286d21 Put modules for 32-bit iOS builds in lib/swift/iphone{os,simulator}/32.
This keeps us from having to deal with fat swiftmodules for now.
In the long run we're hoping to solve this problem with build configurations,
so that a single module file can support multiple architectures.
(See <rdar://problem/15056323>)

<rdar://problem/15204953>

Swift SVN r13135
2014-01-30 03:26:50 +00:00
Joe Groff
0eb31b8af4 Have the install-test-script pass -sdk to Swift, since it's required now.
Swift SVN r13129
2014-01-30 00:21:34 +00:00
Joe Groff
31b50d5eb5 Note that NS_OPTIONS is also nil-convertible in release notes.
Swift SVN r13125
2014-01-29 22:17:49 +00:00
Joe Groff
46333b727f Release note NS_OPTIONS being default constructible.
Swift SVN r13120
2014-01-29 22:05:31 +00:00
Greg Parker
b79d986281 [build] Run SourceKit correctness tests before Swift performance tests.
Swift SVN r13114
2014-01-29 19:57:16 +00:00
Greg Parker
b34e2cfcd8 [build] Don't fail buildbot-script builds if performance results could not be submitted.
Swift SVN r13113
2014-01-29 19:56:18 +00:00
Greg Parker
152c736ac2 [build] Describe 32-bit iOS builds in buildbot-script (but do not build them).
Swift SVN r13107
2014-01-29 10:18:59 +00:00
Jordan Rose
9c6a67d14f Replace '--serialize-diagnostics' with '-serialize-diagnostics-path'.
Part of the migration to the new driver.

Swift SVN r13078
2014-01-29 00:39:08 +00:00
Chris Lattner
660fd6c730 tweak wording
Swift SVN r13059
2014-01-28 17:24:41 +00:00
Chris Lattner
46ce583204 release note observable properties.
Swift SVN r13058
2014-01-28 07:04:07 +00:00
Jordan Rose
774d75dbe1 Release notes: -emit-llvm and -triple have been deprecated.
Swift SVN r13031
2014-01-28 01:42:46 +00:00
Dave Abrahams
c636c6a5fd [utils] buildbot-script: suppress warnings
when not building for ios, we shouldn't need to have an SDK installed to
get a clean build.

Swift SVN r13026
2014-01-28 01:26:30 +00:00
Michael Gottesman
9946080888 [sil-mode] Add highlighting for sil_witness_table.
Swift SVN r13004
2014-01-27 21:01:10 +00:00
John McCall
630cec9612 Got the release-note schema wrong, sorry.
Swift SVN r12997
2014-01-27 18:54:27 +00:00
John McCall
217f111be6 Add a release note for computed type properties of classes and
generic types.

Swift SVN r12996
2014-01-27 18:52:08 +00:00
Nadav Rotem
c865982bad Add another StringSort CPP reference.
Swift SVN r12956
2014-01-25 22:21:44 +00:00
Greg Parker
5df9849939 [build] Use XcodeDefault.toolchain to build iOS stdlibs.
Swift SVN r12954
2014-01-25 07:18:22 +00:00
Greg Parker
5e9b6eab8f [build] Use xcode-select to find Xcode instead of using /Applications/Xcode.app
Swift SVN r12953
2014-01-25 07:17:34 +00:00
Greg Parker
d79d666f32 [build] Remove errant debug log.
Swift SVN r12952
2014-01-25 07:14:40 +00:00
Dave Abrahams
45495f65a0 [utils] buildbot-script.sh: don't hard-code toolchain/SDK
Doing so prevents building and testing against later releases.
Many thanks to Argyrios for helping me figure out what was needed.

Swift SVN r12946
2014-01-25 01:31:46 +00:00
Dave Zarzycki
ef96f78e9a Another random benchmark
This benchmark needs some love. Care needs to be taken to run it several
times and average the result, BUT not resort the sorted array.

Swift SVN r12865
2014-01-23 18:27:52 +00:00
Dave Zarzycki
746654eda5 benchmark: crude slicing benchmark that must be cleaned up
We're 13.6x faster than ObjC.

Swift SVN r12864
2014-01-23 17:46:39 +00:00
Dave Zarzycki
abf2a500f2 benchmarking: switch the C++ version to wstring
This shouldn't make any difference on the performance for C++, but it is
a more fair comparison.

Swift SVN r12863
2014-01-23 17:31:55 +00:00
Dave Zarzycki
87acb261e0 Benchmarking: move String comparisons to utils/benchmark/
Swift SVN r12810
2014-01-22 22:58:30 +00:00
Michael Gottesman
4ccb6bedfb [swift-c++-bench] Update Ackermann test so that the computation is not optimized away as not used.
Swift SVN r12801
2014-01-22 22:39:19 +00:00
Michael Gottesman
8dbe3bf9ed [swift-c++-bench] Change RC4 to time itself internally using mach_absolute_time outputing the elapsed time in the same format as the swift benchmarks. Also add a CPP flag to disable other logging.
Swift SVN r12794
2014-01-22 22:09:45 +00:00
Michael Gottesman
4ff35636ef [swift-c++-bench] Modify ObjInst so that like the swift benchmark we use mach_absolute_time inside the program to do the timing of the routine.
One might wonder, why not just not use mach_absolute_time in the swift program
instead. The reason why is that using mach_absolute_time in this manner filters
out process startup noise as well as anything in the program we do not want to
time.

Swift SVN r12793
2014-01-22 22:09:39 +00:00
Michael Gottesman
c3a2e84928 [swift-c++-bench] Modify the Ackermann benchmark so that we only test the Ackermann calculation and so that we output in the same manner as the swift benchmark.
Swift SVN r12792
2014-01-22 22:09:38 +00:00