Commit Graph

1243 Commits

Author SHA1 Message Date
Saleem Abdulrasool
9b1eccc003 Merge pull request #35920 from compnerd/target-libdispatch
build: build target libdispatch as necessary
2021-02-11 17:57:16 -08:00
Daniel Rodríguez Troitiño
87a403e53f [Concurrency] Fix Android ARMv7 C libdispatch build (#35905)
For cross-compiling Android one can simply provide
CMAKE_ANDROID_ARCH_ABI and the right CMAKE_SYSTEM_PROCESSOR will be
chosen by CMake. Since the SDK arch names are not the expected ones by the Android NDK,
it is better not to use them. The change should keep sending the
CMAKE_SYSTEM_PROCESSOR for SDKs that are not ANDROID, while skipping it
for the ANDROID SDKs.
2021-02-11 09:17:02 -08:00
Saleem Abdulrasool
3b1f01d60e build: build target libdispatch as necessary
This should not be predicated on the host libdispatch being built, only
if concurrency is being built in multithreaded mode.
2021-02-11 09:10:10 -08:00
Dario Rexin
00117e8750 [Concurrency] Fix Android C libdispatch build (#35881)
* [Concurrency] Fix Android C libdispatch build

We need to pass CMAKE_ANDROID_NDK and CMAKE_ANDROID_ARCH_ABI to the
build.

* Set proper ANDROID_ARCH_ABI

* Add -DCMAKE_ANDROID_API to C libdispatch build

* Fix compiler config for Android
2021-02-10 17:35:14 -08:00
Dario Rexin
51bdfa1919 [Concurrency] Build C-only libdispatch as part of Swift build (#35837)
* [Concurrency] Build C-only libdispatch as part of Swift build
2021-02-09 14:24:52 -08:00
buttaface
e6f5913772 [android] Move to the NDK's unified sysroot (#34491)
Since the NDK removes the platforms/ and sysroot/ directories in the latest NDK
22, switch to the unified sysroot in toolchains/llvm/ and take advantage of a
bunch of simplification that's now possible.
2021-02-07 09:19:18 -08:00
swift-ci
e417124ea4 Merge remote-tracking branch 'origin/main' into rebranch 2021-01-31 16:33:35 -08:00
Varun Gandhi
36b589d623 Merge pull request #35538 from mininny/disable-dead-stripping-option
[build-script] Add swift-disable-dead-stripping option for disabling dead stripping
2021-01-31 16:31:48 -08:00
Adrian Prantl
a9f05c8c30 Merge remote-tracking branch 'origin/main' into rebranch
Conflicts:
	lib/IRGen/IRGenDebugInfo.cpp
2021-01-29 16:17:10 -08:00
Erik Eckstein
adae4d7dc7 cmake: another fix for include all header files in Xcode projects.
Header files from within the lib directory were missing.
Also: use get_filename_component instead of regex matching.
2021-01-29 20:48:33 +01:00
swift-ci
e0f68c0b84 Merge remote-tracking branch 'origin/main' into rebranch 2021-01-29 10:12:33 -08:00
Erik Eckstein
3c90576db0 cmake: fix Xcode project generation to include all header files.
This was broken by commit cf1f240534.
This commit reverts the 2 lines which broke the inclusion of header files in the generated Xcode project.
2021-01-29 16:29:08 +01:00
Minhyuk Kim
b0426829fe Add swift_disable_dead_stripping option for disabling dead stripping in Swift build 2021-01-22 23:56:02 +09:00
swift-ci
e6a7c056a3 Merge remote-tracking branch 'origin/main' into rebranch 2021-01-13 13:32:29 -08:00
Robert Widmann
b436825948 Trade Usages of -m${platform}-version-min For -target
There's no reason to use -m${platform}-version-min as of clang-11/Xcode 11. Clang is now smart enough to parse -target and provide Apple's ld with the appropriate -platform_version argument string.
2021-01-13 11:00:39 -08:00
swift_jenkins
9f5e4e98f7 Merge remote-tracking branch 'origin/main' into next 2021-01-06 17:12:10 -08:00
Butta
934823a99c [build] Replace SWIFT_CROSS_COMPILING with SWIFT_PREBUILT_CLANG 2020-12-13 18:22:34 +05:30
swift_jenkins
0b20fc3b0b Merge remote-tracking branch 'origin/main' into next 2020-12-08 16:42:26 -08:00
swift_jenkins
19589db780 Merge remote-tracking branch 'origin/main' into next 2020-12-04 10:23:11 -08:00
John McCall
c346d94655 Fix the build and implementation of the 16-byte atomics for MSVC.
Credit for the cmake fix here goes to Saleem Abdulrasool.

The substantive fix is embarrassing; I didn't pay close attention
to the intrinsic's argument order and just assumed that the first
argument for the replacement value was the low half (the part
you'd find at index 0 if it were an array), but in fact it's the
high half (the part you'd find at index 1).

I also change the code to be much more reinterpret_casty, which
isolates the type-punning mostly "within" the intrinsic, and
which seems to match how other code uses it.
2020-12-04 01:51:29 -05:00
swift_jenkins
f1eec97e9d Merge remote-tracking branch 'origin/main' into next 2020-12-02 19:33:30 -08:00
John McCall
ca16548470 Add a swift::atomic<T> which uses a better ABI than MSVC's 128-bit std::atomic. 2020-12-02 18:47:02 -05:00
Butta
1a28a91db9 [android] Switch armv7 vendor to 'unknown' in target triple to match other arches
Recent changes have made 'none' and 'unknown' not interchangeable anymore, so
standardize on 'unknown' for armv7 too.
2020-12-02 11:05:36 +05:30
swift_jenkins
9d1a110432 Merge remote-tracking branch 'origin/main' into next 2020-12-01 14:04:19 -08:00
David Smith
0180aca9fc Merge branch 'main' into david/fix-merge-conflict 2020-10-27 13:05:20 -07:00
3405691582
c8e48e6d44 [cmake] Semi-parametrize manpage location.
On OpenBSD, man pages go in $CMAKE_INSTALL_PATH/man. This requires
changing the default to something with a parameter when installing
on this platform.
2020-10-24 19:39:22 -04:00
Varun Gandhi
dd4a9f3bde [CMake] Enable library evolution for Darwin overlay.
Fixes rdar://70156840.
2020-10-20 20:34:49 -07:00
Michael Gottesman
86b7bac395 Merge pull request #34023 from buttaface/rpath
[linux] remove absolute rpath of /usr/lib/swift/linux added to many shared libraries
2020-10-19 12:02:32 -07:00
John McCall
1cc3a57e91 Test the just-built dylibs when building unittests on Darwin 2020-10-15 00:36:36 -04:00
Erik Eckstein
290b9170a5 Merge remote-tracking branch 'origin/main' into next 2020-10-05 10:06:46 +02:00
Saleem Abdulrasool
563c99bc7c Merge pull request #34160 from buttaface/arm
[android] Add support for building the toolchain for ARMv7
2020-10-04 14:40:44 -07:00
Erik Eckstein
69edd5020a Merge remote-tracking branch 'origin/main' into next 2020-10-03 21:10:11 +02:00
Butta
f7576a7bef [android] Add support for building the toolchain for ARMv7 2020-10-03 18:55:23 +05:30
John McCall
e1004499c4 [NFC] Split ProtocolDispatchStrategy out of MetadataValues.h.
This allows us to avoid rebuilding most of the compiler
whenever we add a new ABI constant.
2020-10-03 02:26:17 -04:00
Butta
69d04aad08 [linux] remove absolute rpath of /usr/lib/swift/linux added to many shared libraries
This was presumably added as a backup, in case the libraries in a toolchain
couldn't be found, but will not work well, so take it out.
2020-09-25 23:07:14 +05:30
Varun Gandhi
37efac9ff8 Manually merge origin/main into origin/next.
Resolved conflict in lib/ClangImporter/ImportType.cpp.
2020-09-23 08:10:08 -07:00
Kuba (Brecka) Mracek
41f91d5365 Add a SWIFT_FREESTANDING_MODULE_NAME CMake option (#34018) 2020-09-22 15:14:44 -07:00
swift_jenkins
5d4b23757d Merge remote-tracking branch 'origin/master' into master-next 2020-09-11 21:27:51 -07:00
Kuba (Brecka) Mracek
d9d929a594 Revert "Start using optimization (-O0/-O2/-O3/-Os) and debug (-g) flags from CMAKE_CXX_FLAGS_${CFLAGS_BUILD_TYPE} (#33388)" (#33924) 2020-09-11 21:06:05 -07:00
swift_jenkins
a2a0b7edbf Merge remote-tracking branch 'origin/master' into master-next 2020-08-17 19:52:45 -07:00
Kuba (Brecka) Mracek
28a2826ef4 Start using optimization (-O0/-O2/-O3/-Os) and debug (-g) flags from CMAKE_CXX_FLAGS_${CFLAGS_BUILD_TYPE} (#33388) 2020-08-17 19:26:24 -07:00
Nathan Hawes
c453ddf758 Manually merge remote-tracking branch 'upstream/master' into HEAD
Conflicts:
	include/swift/AST/PrettyStackTrace.h
2020-08-17 09:45:56 -07:00
Kuba (Brecka) Mracek
f91fe9c0c1 Use SWIFT_SDK_${prefix}_USE_ISYSROOT to select which SDKs should be building with -isysroot (#33469) 2020-08-14 14:33:28 -07:00
Nathan Hawes
be31ea4438 Manually merge remote-tracking branch 'upstream/master' into HEAD
Conflicts:
	test/DebugInfo/modulecache.swift
2020-08-13 15:27:21 -07:00
Kuba (Brecka) Mracek
ef89b0dc51 Add a 'standalone_minimal' preset to build a minimal, static, OS independent, self-contained binaries of stdlib. (#33286) 2020-08-12 07:28:34 -07:00
swift_jenkins
4632ac5ad1 Merge remote-tracking branch 'origin/master' into master-next 2020-07-31 13:41:11 -07:00
Saleem Abdulrasool
644b700d62 build: remove python fallback in overlay builds
Remove the Python 2 fallback from the standalone overlay build.  This
is part of the migration to Python 3.
2020-07-28 16:55:24 +00:00
Nathan Hawes
5b6c137586 [cmake] Fix zlib cmake issue: Target <X> links to target "ZLIB::ZLIB" but the target was not found...
...after the changes in https://reviews.llvm.org/D79219.

Resolves rdar://problem/66057385
2020-07-24 17:28:03 -07:00
Eric Miotto
6fdcfb0ebf [build] remove support for embedding bitcode in host libraries (#32730)
We are more interested in generating bitcode for the standard library.

Addresses rdar://64952135
2020-07-07 13:46:19 -07:00
Davide Italiano
ca3d37f114 [CMake] Remove a redundant and potentially incorrect check.
There's a more robust check for which SDK to support already.
This also misses `arm64` as architecture.
2020-07-06 09:43:20 -07:00