Arnold Schwaighofer
ca12aaacd4
Revert "Enable SourceKit building by default on Linux"
2017-01-10 15:36:29 -08:00
Alex Blewitt
7159f6af1d
Enable sourcekitd to be built by default on Linux
...
The Linux build has a dependency on the libdispatch library,
which is needed by the various native libraries for sourcekitd.
On macOS, the dependency for libdispatch is satisfied directly through
the base OS, but on Linux no such dependency exists.
Modify this so that if the SourceKit library is built, and the
libdispatch library is already present, then we shell out to make
the libdispatch binary project when the SourceKit is built.
Issue: SR-1676
2016-12-01 10:54:36 +00:00
practicalswift
cc852042c9
[gardening] Fix accidental trailing whitespace.
2016-10-29 10:22:58 +02:00
Doug Coleman
e03265877c
[cmake] Make sure SOURCEKIT_DEPLOYMENT_OS is only set once, at the top.
...
Reset Darwin specific CMake variables to match the correct
SDK and architecture. This is needed when cross compiling, or we'll end up with
conflicting SDK and architectures.
Remove unused variable SOURCEKIT_GLOBAL_DEPLOYMENT_TARGET_FLAGS.
2016-10-18 13:40:04 -07:00
Michael Gottesman
e338c45964
[lto][cmake] When building with lto on macOS, specify to the linker the path where it should put the generated LTO object file.
...
This is important so that the object file references in the debug info are
preserved for possible use by dsymutil.
rdar://28062659
2016-09-24 22:38:33 -07:00
Michael Gottesman
b3819c6783
[cmake] Rename COMPONENT_DEPENDS to LLVM_COMPONENT_DEPENDS ( #4311 )
...
Now that I am going to be adding an IN_SWIFT_COMPONENT argument, I need to do
this to distinguish the concepts of an LLVM_COMPONENT and a SWIFT_COMPONENT.
2016-08-16 12:13:34 -04:00
JP Simard
d3d211b154
link libswiftCore when building SourceKit on Linux
...
since libdispatch now includes a Swift overlay
2016-07-19 10:11:11 -07:00
Brian Croom
e109cb8285
[SourceKit] Add libdispatch as a dependency for some SourceKit products
...
sourcekitdInProc, sourcekitd-test, and complete-test need to be explicitly
linked with libdispatch on Linux to build properly.
2016-07-18 16:17:49 -07:00
Harlan
1625d97976
Switch to llvm-profdata's pooled profdata merge ( #3281 )
2016-07-01 16:45:21 -07:00
Michael Gottesman
61df461e88
[lto][cmake] Add LTO support to SourceKit.
...
rdar://24717107
2016-06-10 13:33:49 -07:00
therealbnut
2f4aed7bb2
Fix some CMakeLists syntax
2016-06-04 06:44:10 +10:00
Brian Gesiak
d7e2e1f93e
[SR-1613][SourceKit] Require blocks runtime
...
SourceKit makes heavy use of blocks. In order to port SourceKit to Linux,
we either need to rewrite much of it to use function pointers, or we must
require a blocks runtime. This commit requires a blocks runtime, but only
when SourceKit is being built. Currently, SourceKit is not built on Linux,
so this should not affect anyone.
2016-05-25 17:17:32 -04:00
Argyrios Kyrtzidis
f242326627
[SourceKit] Use DARWIN_TOOLCHAIN_VERSION if provided, as the version to use for the XPC service name.
...
This is to make service name in the external toolchains unique.
rdar://25612603
2016-04-07 21:34:26 -07:00
practicalswift
abfecfde17
[gardening] if ([space]…[space]) → if (…), for(…) → for (…), while(…) → while (…), [[space]x, y[space]] → [x, y]
2016-04-04 16:22:11 +02:00
mawadah
9494681745
[cmake] Allow Swift libraries to individually build for specific
...
deployment targets.
2016-02-25 16:54:43 -08:00
Argyrios Kyrtzidis
9e244a5275
[SourceKit] Bring back the 'com.apple.' prefix for the bundle identifier of the XPC service.
...
We need this currently. Later-on we can make this more configurable.
2016-02-04 16:42:15 -08:00
Harlan Haskins
1777c20aff
[coverage] Fixed indentation in CMake
2016-02-01 12:38:22 -08:00
Harlan Haskins
44be500157
[coverage] Changed back to old coverage check in CMakeLists.txt files
2016-01-28 13:21:38 -08:00
Harlan Haskins
e997fc3ae3
[coverage] Changed 'none' to 'false' for coverage default
2016-01-28 11:23:59 -08:00
Harlan Haskins
9eb729ce79
[coverage] Reworked CMake invocation for coverage testing given there are three states for SWIFT_ANALYZE_CODE_COVERAGE
2016-01-26 16:36:26 -08:00
Harlan Haskins
c6c0b3d5d0
[coverage] Removed explicit swift-%p.profraw arguments from CMake commands, because we're using LLVM's environment variables
2016-01-25 19:49:03 -08:00
Argyrios Kyrtzidis
c24099c585
[sourcekit] Add the version to the XPC service identifier so that it can be distinct amongst multiple toolchains.
...
rdar://24292112
2016-01-21 18:42:05 -08:00
Luke Larson
ba619a9ff2
[CMake] Support code coverage analysis
2016-01-19 18:51:07 -08:00
Dmitri Gribenko
42591f7cba
SourceKit CMake: use the C compiler and linker flags computed by the Swift build system
2016-01-11 16:23:54 -08:00
Dmitri Gribenko
08854d13ac
SourceKit CMake: remove code to handle legacy SDKs
2016-01-11 16:23:54 -08:00
Jordan Rose
6a0527ec14
[SourceKit/CMake] Fix output directory for building with Xcode.
2015-11-06 16:27:08 -08:00
Ben Langmuir
07e7be5d99
[sourcekit] Fix swift library dependencies
...
Now that we're in the same repo, use cmake targets instead of paths so
we get correct dependencies.
2015-11-05 12:47:38 -08:00
Argyrios Kyrtzidis
8f0bc8c95f
[CMake] Fix building SourceKit for a standalone build.
2015-11-05 11:02:47 -08:00
Argyrios Kyrtzidis
8ff6a98a99
[sourcekit] Merge SourceKit into the Swift repo.
...
The code goes into its own sub-tree under 'tools' but tests go under 'test',
so that running 'check-swift' will also run all the SourceKit tests.
SourceKit is disabled on non-darwin platforms.
2015-11-05 01:09:08 -08:00