Commit Graph

4111 Commits

Author SHA1 Message Date
Saleem Abdulrasool
817597c7f9 utils: attempt to replace custom variables
CMake defaults to using a special <package>_DIR for finding packages.
Prefer this to import the CMake package for LLVM/Clang/Swift rather than
custom paths.
2019-02-14 20:19:08 -08:00
Max Moiseev
73f2008920 Merge pull request #22619 from moiseev/update-checkout-no-prompt
Don't prompt for credentials in update_checkout
2019-02-14 17:11:32 -08:00
Maxim Moiseev
8f1c70c7d7 Use env for portability 2019-02-14 14:40:26 -08:00
Adrian Prantl
1fa23a6555 Move an ineffective variable initialization to a where is has an effect
The original location was only invoked when build-script invked cmake
and on top of that it did not actually make it into the cmake command
line. Since build-script is running lit manually anyway, we can just
move it over there.
2019-02-14 14:36:24 -08:00
Maxim Moiseev
1294098d70 Don't prompt for credentials in update_checkout
The script is not supposed to be interactive, so it's OK to just fail if
it's unable to authenticate the user.
2019-02-14 13:01:48 -08:00
Mishal Shah
039f5f7220 [Preset] Add preset to build no-assertion build without test suite 2019-02-14 00:09:34 -08:00
Philippe Hausler
1fe1b86556 Add a safe API for NSValue and migrate NSValue value fetching to the size variants for validation (#22265) 2019-02-13 14:14:41 -08:00
Saleem Abdulrasool
14a67489dc Merge pull request #22576 from xiaobai/remove_unused_option
[utils] Remove unused CMake var from LLDB build
2019-02-13 13:47:55 -08:00
swift-ci
706f15f228 Merge pull request #22587 from compnerd/cases-are-special 2019-02-13 11:54:46 -08:00
Mishal Shah
047e1e6e97 Update lldb to use swift-5.1-branch for 5.1 config 2019-02-13 11:38:42 -08:00
Alex Langford
8899fb5814 [utils] Remove unused CMake vars from LLDB build 2019-02-13 11:05:30 -08:00
Saleem Abdulrasool
9f76e6e01b WinSDK: repair build on case insensitive file systems
The Windows SDK includes `WinSock2.h` as `winsock2.h` in `WS2tcpip.h` which
breaks on case sensitive file systems such as ext4.
2019-02-13 09:13:09 -08:00
Xi Ge
930ea507bb Merge pull request #22566 from nkcsgexi/tool-chain-install-syntax
build-script: install swiftsyntax parser into the toolchain
2019-02-12 17:10:59 -08:00
Brent Royal-Gordon
541b17a593 Fix build-script SwiftEvolve support (#22148) 2019-02-12 16:09:58 -08:00
Xi Ge
15074fbf3b build-script: install swiftsyntax parser into the toolchain
This patch teaches build-script to combine both --build-libparser-only and
--install-swift.
2019-02-12 15:48:19 -08:00
Arnold Schwaighofer
9a968e9a45 analyze_code_size.py: Handle object files and dylibs 2019-02-12 09:59:46 -08:00
Ben Langmuir
b04ffed6af Merge pull request #22535 from benlangmuir/pr-lsp
Add PR test presets for sourcekit-lsp and indexstore-db
2019-02-12 07:19:06 -08:00
Rintaro Ishizaki
552dcd81aa Merge pull request #22429 from rintaro/sourcekit-conformingmethods
[IDE/SourceKit] New SourceKit request for filtered method list
2019-02-11 18:13:15 -08:00
Mishal Shah
08484a8beb Merge pull request #22520 from benlangmuir/asanless
Disable sourcekit-lsp on Linux asan preset
2019-02-11 18:09:02 -08:00
Ben Langmuir
22cfbc02a4 Add PR test presets for sourcekit-lsp and indexstore-db
rdar://47984030
2019-02-11 16:53:02 -08:00
Rintaro Ishizaki
6aee036812 Merge pull request #22214 from bannzai/syntax/add/function/make_ellipsis_token
[SwiftSyntax] Add SyntaxFactory.makeEllipsisToken function.
2019-02-11 16:27:37 -08:00
Slava Pestov
c8effd26b3 Merge pull request #22408 from slavapestov/always-use-legacy-layouts
Always use legacy layouts
2019-02-11 19:10:02 -05:00
Ben Langmuir
e6b603ddac Disable sourcekit-lsp on Linux asan preset
This was an oversight and should not have been enabled (yet). When we're
ready we should enabled asan testing on macOS as well.

rdar://47973246
2019-02-11 13:40:18 -08:00
Arnold Schwaighofer
6864b82188 Merge pull request #22444 from aschwaighofer/code_size_script
Add script to categorize and list functions and data in all sections of an object
2019-02-11 07:05:57 -08:00
Xi Ge
4686cc87bd Merge pull request #22010 from marcelofabri/swift-version-request
[SR-9630][SourceKit] Add request to get compiler version
2019-02-09 21:55:44 -08:00
Rintaro Ishizaki
1d845d6e3f [IDE/SourceKit] New SourceKit request for filtered method list
`source.request.conformingmethods` is a new SourceKit request which
receives a source position and a list of protocol namses, returns a list
of methods whose return type conforms to the requested protocols.

rdar://problem/44699573
2019-02-08 12:56:58 -08:00
Slava Pestov
b64db715a8 IRGen: Remove -enable-class-resilience staging flag 2019-02-08 14:22:00 -05:00
Xi Ge
a9f9f3ddec SwiftSyntax: address some post-commit review comments 2019-02-07 21:45:06 -08:00
Xi Ge
26bf98f2ec Merge pull request #22457 from nkcsgexi/hash-imple-syntax-nodes
SyntaxNodes: implement the hash function for syntax nodes.
2019-02-07 19:54:36 -08:00
Xi Ge
0c28b4c1a3 SyntaxNodes: implement the hash function for syntax nodes.
This hash function will concatenate all interesting pieces of information
of node definitions in a single string and call hash() on this string.
2019-02-07 16:58:26 -08:00
Mishal Shah
688b73268e Merge pull request #22463 from benlangmuir/long_14
Fix 14.04 long test preset accidentally changed in last commit
2019-02-07 15:55:53 -08:00
Bob Wilson
8045a42165 Merge pull request #22455 from bob-wilson/new-checkout-configs
[update-checkout] Add new branch configs for Swift 5.1
2019-02-07 15:55:25 -08:00
Ben Langmuir
065a00b600 Fix 14.04 long test preset accidentally changed in last commit 2019-02-07 15:48:52 -08:00
Ben Langmuir
c51a6c0a89 Disable sourcekit-lsp and indexstore-db on Ubuntu 14.04
We need to decide if we want to support these configurations, and in the
meantime it's better for us to disable them while we stabilize on the
other platforms. Fixes the currently broken build on 14.04.
2019-02-07 15:39:02 -08:00
Bob Wilson
5ce1aa88dc [update-checkout] Add new branch configs for Swift 5.1
Add a tentative branch config for "swift-5.1-branch". Not all of the repos
are branched yet. I went ahead and added a reference to swift-5.1-branch for
the Swift repo, so that I can use this to start pulling together something
with cherry-picks from master-next. (The current master-next branch has
moved past the point where we branched the LLVM repos for swift-5.1-branch,
so we can't just grab a copy of master-next.) I also added a separate config
for "swift-5.1-old-llvm-branch", which will be used temporarily to track the
same Swift content as swift-5.1-branch but still building with the version
of LLVM in swift-5.0-branch.
2019-02-07 14:19:56 -08:00
Arnold Schwaighofer
bcd3410ce8 Add script to categorize and list functions and data in all sections of an object 2019-02-07 11:20:42 -08:00
Ben Langmuir
a3158efba3 Merge pull request #21966 from benlangmuir/pkg-build-from-tc-combined
[build-script] build and test indexstore-db and sourcekit-lsp
2019-02-07 08:35:19 -08:00
bannzai
814cf829be Change syntax kind to EllipsisKind 2019-02-07 23:16:24 +09:00
Xi Ge
e07a8cf2a6 SyntaxParser: set up a C API to get a hash value indicating the node declaration set
To ensure SwiftSyntax calls a compatible parser library, this patch sets
up a C API that returns a constant string calculated during compilation time to indicate
the version of syntax node declarations. The same hash will be calculated
in the SwiftSyntax (client) side as well by using the same algorithm.

During runtime, SwiftSyntax will verify its hash value is identical to the
result of calling swiftparse_node_declaration_hash before actual
parsing happens.

This patch only sets the API up. The actual implementation of the
hashing algorithm will come later.
2019-02-06 17:33:48 -08:00
Mishal Shah
2f7e367ed0 Merge branch 'master' into pkg-build-from-tc-combined 2019-02-05 22:15:03 -08:00
Ben Langmuir
e180006709 [libcxx] Simplify the conditions for building libcxx
Now we build libcxx if and only if --libcxx is passed, like with other
optional products.  This loses the intended "build if sources are
checked out" behaviour, but behaves more predictably.
2019-02-05 16:46:03 -08:00
Ben Langmuir
da5e2e6f87 Merge pull request #22375 from apple/revert-22359-revert-22346-libcxx
Reapply "[build-script] Add Product for libc++"
2019-02-05 15:20:57 -08:00
Michael Gottesman
f13b8eb10b [cmake] Rather than using CMAKE_{C,CXX}_COMPILER and CMAKE_{C,CXX}_COMPILER_ARG1 for distcc, use CMAKE_{C,CXX}_COMPILER_LAUNCHER.
This is a cleaner, more principled way of adding "compiler launcher" support and
ensures that cmake understands that distcc is not the "actual" compiler.

This ensures that when we compile SwiftRemoteMirrors for the host, we do not try
to compile using distcc without needing to reset CMAKE_{C,CXX}_COMPILER_ARG1
(which is unset when compiling things in the stdlib).
2019-02-05 13:22:53 -08:00
Ben Langmuir
1b2677fc72 Revert "Revert "[build-script] Add Product for libc++"" 2019-02-05 08:57:44 -08:00
Saleem Abdulrasool
ee4d8822ed utils: fix cmake build of lldb on macOS
Fix the check for building on macOS, fix a syntax error in the script.
This should repair the macOS build of lldb with CMake.  Thanks to
@slavapestov for pointing out that this path had been broken!
2019-02-04 19:55:53 -08:00
Ben Langmuir
4587ba30b9 Revert "[build-script] Add Product for libc++" 2019-02-04 14:58:03 -08:00
Ben Langmuir
953cb4cb05 Fixup rebase conflicts 2019-02-04 14:44:43 -08:00
Ben Langmuir
9bbd28725a [build-script] Fix pylint warnings from indexstoredb/sourcekitlsp 2019-02-04 14:44:42 -08:00
Ben Langmuir
c034445bd2 [build-script] Fix test_driver_arguments failures 2019-02-04 14:44:42 -08:00
Ben Langmuir
c64d74777c Add packages to presets 2019-02-04 14:44:34 -08:00