Saleem Abdulrasool
6ff321aa5f
build: adjust cmake invocation for export targets
...
This adjusts the cmake invocation for Foundation to use the export
targets rather than computing the locations by hand.
2019-11-13 10:25:58 -08:00
Saleem Abdulrasool
5b38c1efb4
build: adjust flags to XCTest cmake invocation
...
Update the cmake invocation for XCTest to enable switching to a newer
CMake version.
2019-11-12 18:42:16 -08:00
Saleem Abdulrasool
0ad2e24dde
build: adjust cmake invocation for llbuild
2019-11-08 07:53:41 -08:00
Vedant Kumar
cb25560490
[build-script] Allow lipo of cross-compiled lldb products ( #27920 )
...
Teach build-script to build lldb's `install-distribution` target when
installation is required, and make the lipo action invoke lipo when
cross-compiling.
Incidentally this fixes a bash warning about `continue` being invalid
outside of a loop.
2019-11-05 12:45:05 -08:00
Saleem Abdulrasool
cda6942121
build: enable *building* lld
...
This enables building lld to ensure that we are able to build it in our
toolchain. This does not change the linker used for any of the builds.
2019-11-04 09:30:25 -08:00
Ankit Aggarwal
7241030876
Move swiftpm to swift_build_support infra
...
This will allow cleaning up most of the hacks in SwiftPM's build script.
<rdar://problem/56220087>
2019-11-03 03:23:35 +00:00
Alex Hoppen
fcd3457560
[build-script] Migrate SwiftSyntax to swift_build_support
2019-10-29 10:40:09 -07:00
Alex Hoppen
776e2c0030
Revert "Migrate building SwiftSyntax to swift_build_support"
2019-10-29 09:55:32 -07:00
Alex Hoppen
282d0de82f
Merge pull request #27871 from ahoppen/swiftsyntax_build_support
...
Migrate building SwiftSyntax to swift_build_support
2019-10-29 08:45:41 -07:00
Vedant Kumar
b92beb46ef
[build-script] Teach cross-compile hosts check about --skip-local-build ( #27911 )
...
Check whether there are any cross compile hosts by looking at the
CROSS_COMPILE_HOSTS array, not at ALL_HOSTS, as these can be different
due to --skip-local-build.
2019-10-28 14:39:48 -07:00
Vedant Kumar
2a05418dac
[build-script] Forward cross-compile host flags to lldb ( #27910 )
2019-10-28 14:37:02 -07:00
Alex Hoppen
7ed085cb55
[build-script] Migrate SwiftSyntax to swift_build_support
2019-10-25 15:58:07 -07:00
Alex Hoppen
d5c28d870e
Merge pull request #27841 from ahoppen/forward-verify-generated-files
...
SwiftSyntax: Commit gyb-generated files to master
2019-10-25 11:34:20 -07:00
Jonas Devlieghere
40e5924f60
Merge pull request #27814 from JDevlieghere/use-static-bindings
...
[CMake] Fix the static bindings workflow.
2019-10-24 09:20:19 -07:00
Saleem Abdulrasool
3c17e976b3
build: adjust rpath for new foundation layout
...
This adjusts the encoded RPATH to enable us to switch to the new
Foundation build.
2019-10-23 13:53:14 -07:00
Alex Hoppen
58d3c86b1d
[build-script] Add flag that forwards to SwiftSytnax --verify-generated-files
...
This will allow us to set up a CI bot that can test that all generated
sources in SwiftSyntax are up-to-date.
2019-10-22 14:31:21 -07:00
Jonas Devlieghere
ec21125988
[CMake] Fix the static bindings workflow.
...
Rename LLDB_ALLOW_STATIC_BINDINGS to LLDB_USE_STATIC_BINDINGS and make
LLDB use the static bindings unconditionally when it's set. The current
variable is opaque because it allows LLDB to use the static bindings,
but only if SWIG is not found. If an incompatible version of swig is
found, it reports a fatal error. This serves no purpose other than to
confuse the user.
The corresponding LLDB patch simplifies things and makes the variable do
what you expect. When enabled, LLDB uses the static bindings. When
disabled, we try to generate them with SWIG.
This patch modifies the build scripts to pass the new variable.
2019-10-21 14:39:25 -07:00
Alex Hoppen
1926da3fe7
[build-script] Move building swiftevolve to swift_build_support
2019-10-19 19:10:41 -07:00
Alex Hoppen
adbd96bcf1
[build-script] Move building skstresstester to swift_build_support
2019-10-19 19:10:41 -07:00
Jonas Devlieghere
2f95cf0236
[build-script] Fix typo in variable name.
...
s/LLVM_LIT_ARG/LLVM_LIT_ARGS/
2019-10-14 15:50:30 -07:00
Saleem Abdulrasool
ec32e9a3cd
build: tweak LLDB flags for testing
...
Adjust LLDB flags for new Foundation layout.
2019-10-13 19:20:02 -07:00
Saleem Abdulrasool
23db8d0e2e
build: pass CMAKE_Swift_COMPILER to llbuild
...
Setup the CMake invocation for the migration to CMake 3.15. This will
allow us to simplify the s-p-m bootstrap and the llbuild build itself
(see apple/llbuild#587 ).
2019-10-13 15:22:47 -07:00
Adrian Prantl
95e73433ef
Only pass -DLLVM_USE_SPLIT_DWARF in DebugInfo-enable builds.
...
Thanks to Daniel Rodríguez Troitiño for pointing this out!
2019-10-11 10:33:06 -07:00
adrian-prantl
eb02f20f99
Merge pull request #27407 from adrian-prantl/split-dwarf
...
On Linux build LLVM and subprojects with -gsplit-dwarf which is more …
2019-10-10 10:28:25 -07:00
Alex Hoppen
1d7d58a363
Merge pull request #27576 from ahoppen/install-swiftsyntax-module
...
[build-script] Fix issue with installing SwiftSyntax if target dir does not exist
2019-10-08 15:54:30 -07:00
swift-ci
f692420e31
Merge pull request #27567 from dcci/skip-local-build
2019-10-08 13:21:24 -07:00
swift-ci
f2b43e4bf0
Merge pull request #27575 from mikeash/compiler-retweet-nonexistent-ls
2019-10-08 13:15:33 -07:00
Alex Hoppen
36a7e93290
[build-script] Fix issue with installing SwiftSyntax if target dir does not exist
2019-10-08 11:48:52 -07:00
Ross Bayer
e40a6fd42d
[Build System: build-script-impl] Fix the copy logic in build-script-impl to install the compiler-rt builtins to only 'ls' directories that exist.
2019-10-08 14:47:54 -04:00
Alex Hoppen
f2229c4811
Merge pull request #27566 from ahoppen/install-swiftsyntax-module
...
[build-script] Pass updated arguments to SwiftSyntax's build script
2019-10-08 11:26:10 -07:00
Davide Italiano
b2a1e1c1ff
[build-script] Introduce an option to skip local build.
...
This is useful for cross-compiling.
<rdar://problem/55916729>
2019-10-08 11:16:08 -07:00
Alex Hoppen
c4814cbdbe
[build-script] Pass updated arguments to SwiftSyntax's build script
...
This fixes an issue that caused SwiftSyntax's module to not be properly
installed.
2019-10-07 16:54:29 -07:00
Mike Ash
afb904f962
[build-script-impl] Echo commands that are executed when in verbose mode.
2019-10-07 10:14:51 -04:00
Mike Ash
91c95019c1
[build-script-impl] Handle multiple version directories in TOOLCHAIN/usr/lib/clang.
...
This ensures that compiler-rt gets copied across even if there's more than one version listed.
rdar://problem/55974236
2019-10-07 10:14:19 -04:00
Davide Italiano
33770fa665
Merge pull request #27526 from dcci/openupyoureyes
...
[build-script-impl] Fix cross-compilation of swift.
2019-10-03 13:59:39 -07:00
Davide Italiano
0996da0ed2
[build-script-impl] Fix cross-compilation of swift.
...
Swift requires now tablegen to build Options.inc, so build script
has to be taught about picking the host llvm-tablegen instead of
the target llvm-tablegen.
<rdar://problem/55916729>
2019-10-03 11:54:43 -07:00
Saleem Abdulrasool
c7d80f202d
build: stage libdispatch exports target usage
...
Pass `dispatch_DIR` which will replace *_PATH_TO_LIBDISPATCH_SOURCE and
*_PATH_TO_LIBDISPATCH_BUILD.
2019-10-03 08:51:47 -07:00
swift-ci
829df919a9
Merge pull request #27459 from compnerd/xctest-build-type
2019-10-01 10:57:11 -07:00
Saleem Abdulrasool
a9a178cdd1
build: correct the build type for XCTest
...
Use the correct variable for the build type for XCTest. We would
previously use the build type specified for dispatch to build XCTest.
2019-10-01 08:48:42 -07:00
swift-ci
e901234d1b
Merge remote-tracking branch 'origin/master' into master-rebranch
2019-09-30 08:03:50 -07:00
Saleem Abdulrasool
ce5295b360
build-script: new spelling for swift compiler
2019-09-29 15:46:28 -07:00
Adrian Prantl
9b6ff03f9e
On Linux build LLVM and subprojects with -gsplit-dwarf which is more space/time
...
efficient than -g on that platform. This improves time spent to link products
built with debug info quite a bit.
2019-09-27 13:41:02 -07:00
Jonas Devlieghere
6e6de9eba3
[build-script] Pass LLDB_EXTRA_CMAKE_ARGS last
...
Pass LLDB_EXTRA_CMAKE_ARGS last so it can override defaults values set
earlier. It also makes sure we only pass LLDB_USE_SYSTEM_DEBUGSERVER
when the corresponding build-script flag is set.
2019-09-25 16:45:53 -07:00
Jonas Devlieghere
3f669d1b86
Don't quote DOTEST_EXTRA as they're part of a CMake list
...
Even though the dotest extra arguments can contain multiple flags, we
shouldn't quote them because they're passed as a list to CMake. This
also fixes the check above which was inspecting the wrong variable.
2019-09-24 10:08:02 -07:00
Fred Riss
40721a80f8
build-script-impl: Fix passing extra args to dotest
...
The quotes around the arguments were not escaped properly.
2019-09-23 20:44:21 -07:00
swift-ci
7fd3cd647e
Merge remote-tracking branch 'origin/master' into master-rebranch
2019-09-21 06:04:30 -07:00
Saleem Abdulrasool
ba3a3a7561
build: try harder to pass along CMAKE_Swift_COMPILER
...
This is needed for the CMake 3.15 based build.
2019-09-20 11:11:19 -07:00
swift-ci
5027c23664
Merge remote-tracking branch 'origin/master' into master-rebranch
2019-09-20 08:43:03 -07:00
Jonas Devlieghere
bd75e34fc3
[build-script] Don't override the LLDB codesign idenity.
...
Overriding the code sign identity in build script makes no sense.
2019-09-18 17:55:43 -07:00
Saleem Abdulrasool
42f350b682
utils: pass CMAKE_Swift_COMPILER
...
This is the variable that the official CMake Swift support uses. Define
this so that we can be forward compatible with CMake 3.15.
2019-09-18 17:47:18 -07:00