Eric Miotto
4990bc4c1e
[build] amend search path for Cmake modules
...
Since we are not using symlinks anymore, we need to point to the correct
directory with LLVM cmake modules.
Fixes rdar://problem/57294763
2019-11-18 13:34:41 -08:00
Eric Miotto
4827ed7d85
Add explanation about the change
2019-11-15 15:41:14 -08:00
Eric Miotto
61a8e72091
Build: search libraries in Apple SDKs (if needed)
...
Addresses rdar://problem/56204969
2019-11-07 07:46:40 -08:00
swift-ci
0266d21f4e
Merge remote-tracking branch 'origin/master' into master-next
2019-11-04 13:29:38 -08:00
Saleem Abdulrasool
b861bcc87b
build: check the compiler against the correct variable
...
We were checking the compiler ID against the name of the compiler
binary. This happened to pass incorrectly on Windows, which hid the
bug.
2019-11-04 10:52:18 -08:00
swift-ci
5323db1cfc
Merge remote-tracking branch 'origin/master' into master-next
2019-10-31 13:49:56 -07:00
Saleem Abdulrasool
7a2a0e77dc
build: add a dependency on clang
...
This enables injecting a dependency on clang for the target libraries if
the host compiler is not clang.
2019-10-30 16:50:04 -07:00
Xi Ge
64c0680686
Merge remote-tracking branch 'apple/master' into master-next
2019-10-28 10:19:36 -07:00
Rintaro Ishizaki
60341baf62
[SyntaxParse] Refactor generic requirement syntax structure
...
Re-apply a part of 0569cbfb28 after
reverting ASTGen changes. This is still an improvement.
2019-10-21 15:16:56 -07:00
Saleem Abdulrasool
33ad3befd8
build: avoid generator expression usage for compiler swap
...
When using the monorepo, it seems that even if Swift is built
standalone, we would see the target as imported and attempt to use the
generator expression, which would not resolve.
2019-10-20 10:41:37 -07:00
Saleem Abdulrasool
d2302fd774
build: allow unified builds on Windows
...
We cannot query the location of the clang target when clang is built in
a unified build. Use a generator expression instead.
2019-10-18 13:40:38 -07:00
Harlan Haskins
2db9402a1b
[SkipFunctionBodies] Build everything but the stdlib with function body skipping
...
This un-revers #27588 , which was causing failures on debug builds
because it was only disabling the NonInlinableFunctionSkippingChecker
for the *optimized* OnoneSupport module, but not the unoptimized one.
2019-10-16 19:04:23 -07:00
Rintaro Ishizaki
f8209f2865
Merge pull request #27675 from rintaro/revert-syntaxparse
...
[SyntaxParse] Revert syntax parsing changes from the master branch
2019-10-15 18:33:36 +02:00
swift-ci
e8dc3adab9
Merge remote-tracking branch 'origin/master' into master-next
2019-10-14 14:49:51 -07:00
Dan Zheng
2bd55f6755
[Autodiff upstream] Add build-script flag for differentiable programming. ( #27595 )
...
Add `--enable-experimental-differentiable-programming` build-script flag.
The build-script flag enables/disables standard library additions
related to differentiable programming. This will allow official Swift
releases to disable these additions.
The build-script flag is on by default to ensure testing of
differentiable programming standard library additions. An additional
driver flag must be enabled to use differentiable programming features:
https://github.com/apple/swift/pull/27446
2019-10-14 14:34:48 -07:00
Rintaro Ishizaki
8768832f24
Revert "Merge pull request #27281 from rintaro/reapply-syntaxparse-genericparam"
...
This reverts commit 5d3e8d6c83 , reversing
changes made to 27e881d97e .
2019-10-14 12:46:31 -07:00
Rintaro Ishizaki
bf5aa0a5a1
Revert "Merge pull request #27325 from rintaro/syntaxparse-cctype"
...
This reverts commit 439b9111b7 , reversing
changes made to 4e476ff243 .
2019-10-14 12:20:57 -07:00
swift-ci
eb4261ac64
Merge remote-tracking branch 'origin/master' into master-next
2019-10-11 16:10:06 -07:00
Harlan Haskins
5acc4175fd
Revert "[SkipFunctionBodies] Build everything but the stdlib with function body skipping"
2019-10-11 15:45:00 -07:00
swift-ci
84f192ddce
Merge remote-tracking branch 'origin/master' into master-next
2019-10-10 13:50:08 -07:00
Xi Ge
c9f1900d3b
Merge pull request #27464 from nkcsgexi/deserialize-source-info
...
SerializeLoc: serialize basic decl source location information to .swiftsourceinfo file
2019-10-10 13:46:04 -07:00
swift-ci
111a4b00db
Merge remote-tracking branch 'origin/master' into master-next
2019-10-10 11:50:29 -07:00
Xi Ge
dec878360f
Driver: rename Name.swiftmodule/Private directory to Name.swiftmodule/Project
...
This directory should be excluded during installation since the content is only
used for local development. swiftsourceinfo file is currently emitted to this directory.
2019-10-09 15:29:52 -07:00
Harlan Haskins
8cb2449ca3
Update SwiftSource.cmake
...
CMake...
2019-10-09 11:07:53 -07:00
Harlan Haskins
5301fa0d3e
Build everything but the stdlib with function body skipping
2019-10-09 10:14:44 -07:00
swift-ci
c479f15210
Merge remote-tracking branch 'origin/master' into master-next
2019-10-08 09:09:07 -07:00
Alex Langford
c07d02ef74
[CMake] Correctly export SWIFT_LIBRARY_DIRS
2019-10-07 18:57:32 -07:00
swift-ci
cce352f60e
Merge remote-tracking branch 'origin/master' into master-next
2019-09-26 14:10:31 -07:00
Xi Ge
7ba1595baf
cmake: avoid adding source info driver flag to swift_module_flags
...
rdar://55748348
2019-09-26 13:10:21 -07:00
swift-ci
76e7b1d2eb
Merge remote-tracking branch 'origin/master' into master-next
2019-09-24 20:50:21 -07:00
Xi Ge
adb0e6e19f
Merge pull request #27277 from nkcsgexi/add-source-info-to-driver
...
Frontend: set up output file .swiftsourceinfo
2019-09-24 20:34:47 -07:00
Xi Ge
ec9cf33af0
Driver: expose -emit-module-source-info-path as a driver option
2019-09-24 13:52:17 -07:00
Xi Ge
4cd46d9ed0
cmake: exclude Private dir from installation
2019-09-24 13:52:17 -07:00
Xi Ge
3103b5cec1
Frontend: set up output file .swiftsourceinfo
...
This patch will focus on teaching driver and frontend to emit this file.
The actual content and de-serialization parts will come later.
More details: https://forums.swift.org/t/proposal-emitting-source-information-file-during-compilation/28794
2019-09-24 13:52:17 -07:00
swift-ci
45461160d6
Merge remote-tracking branch 'origin/master' into master-next
2019-09-24 11:49:46 -07:00
Rintaro Ishizaki
1a9b6d0dbf
[SyntaxParse] Introduce CodeCompletionTypeSyntax
...
To represent a type with code completion.
type? '.'? <code-completion-token>
This is "parser only" node which is not exposed to SwiftSyntax.
Using this, defer to set the parsed type to code-completion callbacks.
2019-09-24 10:21:38 -07:00
swift-ci
23279c072e
Merge remote-tracking branch 'origin/master' into master-next
2019-09-20 18:10:22 -07:00
swift-ci
a8b334f1e1
Merge remote-tracking branch 'origin/master' into master-next
2019-09-20 15:29:01 -07:00
Rintaro Ishizaki
0569cbfb28
Revert "Revert "[SyntaxParse] Parse generic parameter clause and generic where clause""
...
This reverts commit 1584e87aa7 .
2019-09-20 15:26:04 -07:00
Rintaro Ishizaki
1584e87aa7
Revert "[SyntaxParse] Parse generic parameter clause and generic where clause"
2019-09-20 14:02:53 -07:00
swift-ci
da140a852a
Merge remote-tracking branch 'origin/master' into master-next
2019-09-20 11:09:43 -07:00
Rintaro Ishizaki
f919b2ddd8
[SyntaxParse] Parse generic parameter clause and generic where clause
2019-09-19 23:09:58 -07:00
swift-ci
0c440ff5ef
Merge remote-tracking branch 'origin/master' into master-next
2019-09-13 20:49:32 -07:00
Harlan Haskins
c82c9b8210
[ModuleInterfaces] Remove references to 'parseable' interfaces everywhere
...
Now that we've settled on Module Interface as the name, let's remove the
vestiges of "Parseable Interfaces"
2019-09-13 14:55:48 -07:00
swift-ci
1898d99830
Merge remote-tracking branch 'origin/master' into master-next
2019-08-30 08:09:38 -07:00
Saleem Abdulrasool
89516d00e7
build: dereference variable as appropriate
...
Certain versions of CMake behave differently with variable expansion. This may
be evaluated incorrectly in some versions. Dereference the value explicitly.
2019-08-29 13:54:20 -07:00
Arnold Schwaighofer
02b908dca3
Merge remote-tracking branch 'origin/master' into master-next
2019-08-28 06:51:13 -07:00
Michael Gottesman
447f00892a
[ownership] Enable ownership lowering on overlays. I still need to flip the switch to enable this on the tests/rest of the world.
2019-08-27 18:26:15 -07:00
swift-ci
b503ced230
Merge remote-tracking branch 'origin/master' into master-next
2019-08-22 16:29:14 -07:00
Alex Langford
61be4d969f
[CMake][NFC] Introduce component targets for proper dependency tracking
...
This commit introduces a CMake target for each component, adds install targets
for them, and switches build-script-impl to use the target `install-components`
for installation. Each of the targets for each component depends on each
of the individual targets and outputs that are associated with the
corresponding swift-component.
This is equivalent to what already exists, because right now install rules are
only generated for components that we want to install. Therefore, this commit
should be an NFC.
This is a resubmission (with modifications) of an earlier change. I originally
committed this but there were problems with some installation rules.
2019-08-22 10:16:50 -07:00