Граф коммитов

81696 Коммитов

Автор SHA1 Сообщение Дата
Michael Gottesman df71e6ab9d [cmake] Add support for exporting frameworks/libraries into cmake export files.
I think this was just an oversight. The new cmake 3.16 seems to choke if we do
not add SourceKit to the exports file since there are dependencies upon it in
other swift libraries.

(cherry picked from commit 8d712af965)
2020-07-27 10:34:37 +02:00
Stephen Hawley f645a99fa6 Added check to see if the type is representable an an existential type. 2020-04-21 14:44:33 -04:00
Steve Hawley 872054a463
Merge pull request #3 from xamarin/swift-5.0-branch-assoc-fixes
Fixed missing terminal quote, made conformances have the full name, fixed a missing newline.
2020-01-13 11:02:38 -05:00
Stephen Hawley e0ce1ad396 Fixed missing terminal quote, made conformances have the full name, fixed a missing newline. 2020-01-13 10:23:24 -05:00
Steve Hawley b8f5051e09
Merge pull request #2 from xamarin/swift-5.0-branch-assoc-types
Swift 5.0 branch assoc types
2020-01-09 09:31:35 -05:00
Stephen Hawley 96caf55e3c Minor fixes for whitespace and capitalizing 2020-01-08 15:16:44 -05:00
Stephen Hawley c2ad477565 Now with associated types 2020-01-08 13:41:58 -05:00
Steve Hawley 901346864e
Merge pull request #1 from xamarin/swift-5.0-branch-tomswifty-any
Swift 5.0 branch tomswifty any
2020-01-03 15:25:59 -05:00
Stephen Hawley fd364b632b Ah, there's the stuff. 2020-01-03 14:36:01 -05:00
Stephen Hawley 302a97f778 Added a special case for Swift.Any in protocols. 2020-01-03 09:26:24 -05:00
Stephen Hawley e4248d7c4e Implement the Swift Reflector. 2019-09-24 17:23:38 +02:00
Mishal Shah a87ef76f85
Merge pull request #24089 from weissi/jw-bump-compiler-version
bump compiler version to 5.0.3
2019-08-27 16:26:43 -07:00
Johannes Weiss 4d66676ad5 bump compiler version to 5.0.3 2019-08-27 16:28:56 +01:00
Mishal Shah 148ea44acf
Merge pull request #25996 from apple/use-50x-module-path
Use 5.0.x-style module paths in tests
2019-07-08 10:27:45 -07:00
Kevin Sweeney 150467507f
Use 5.0.x-style module paths in tests 2019-07-08 15:34:33 +01:00
Mishal Shah b36d989479
Merge pull request #25280 from kevints/bump-to-5.0.2
Bump SWIFT_VERSION to 5.0.2
2019-06-27 08:35:40 -07:00
Mishal Shah 03d0363429
Merge pull request #25784 from kevints/testing-os-cherrypick-5.0
[5.0] Cherry-pick changes to allow testing the OS or just-built Swift dylibs
2019-06-26 15:35:57 -07:00
Kevin Sweeney e9e2d8a153 Disable playgroundsupport tests to workaround rdar://47528005 2019-06-26 14:07:08 +01:00
Mishal Shah 9962f02a0b Disable following tests due to Swift in the OS changes:
Swift(macosx-x86_64) :: execution/interpret-with-dependencies.swift
    Swift(macosx-x86_64) :: SIL/Serialization/deserialize_stdlib.sil
    Swift(macosx-x86_64) :: SIL/Serialization/deserialize_objectivec.sil
    Swift(macosx-x86_64) :: SIL/Serialization/deserialize_darwin.sil
    Swift(macosx-x86_64) :: SIL/Serialization/deserialize_coregraphics.swift

rdar://problem/51868140
2019-06-18 15:18:52 -07:00
Mike Ash 3435845e49 [Tests] Fix up a few more missing library paths. 2019-06-13 21:59:55 -04:00
Mike Ash ce3091b099 [Tests] Fix up lit.cfg after the cherry-picks. 2019-06-13 21:24:58 -04:00
Joe Shajrawi 57d03df98f [5.1] lit.cfg: Respect the DYLD_LIBRARY_PATH restrictions when not using %target-run
Some test cases use something like
```
config.target_run_simple_swift = (
        '%%empty-directory(%%t) && '
        '%s %s %%s -o %%t/a.out -module-name main  && '
        '%s %%t/a.out &&'
        '%s %%t/a.out’
```
That does not respect the %target-run DYLD_LIBRARY_PATH for choosing the just built libraries and/or OS libraries.
This PR respects said library path in such situations

rdar://problem/49835064
2019-06-13 20:37:24 -04:00
Joe Shajrawi 7c9732558f lit.cfg: fix a bug in simulator target 2019-06-13 20:36:27 -04:00
Joe Shajrawi 30ab32084b lit.cfg: move the DYLD_LIBRARY_PATH setting code to the config.substitutions
This change the order the configuration file to something that makes more sense: the platform_module_dir value was being set in the middle of the config.substitutions phase.
We needed said value for setting the DYLD_LIBRARY_PATH, so that code was added right after it.

The problem is that by that time config.substitutions.append(('%target-run', config.target_run)) has already happened for local targets

This change moves all said code to just before the substitutions phase, much cleaner and resolves rdar://problem/49835064
2019-06-13 20:32:10 -04:00
Joe Shajrawi a0aaf39b3a Set up testing with the standard libraries coming from the OS
We  default Swift tests to use the just-built libraries
See radars rdar://problem/35163663 and rdar://problem/42176864
2019-06-13 20:29:42 -04:00
Kevin Sweeney d3f699798d Bump SWIFT_VERSION to 5.0.2 2019-06-06 15:14:30 +01:00
Bob Wilson e6047a2f5b
Merge pull request #24247 from mikeash/objc-class-resilience-category-test-10.9-xfail-5.0
[5.0][Tests] XFAIL objc_class_resilience Category test on OS X 10.9.
2019-04-26 14:36:16 -07:00
Mike Ash a88817231f [Tests] XFAIL objc_class_resilience Category test on OS X 10.9.
rdar://problem/49794438
2019-04-25 15:31:42 -04:00
najacque b4e44cb124
Merge pull request #23786 from aschwaighofer/increase_stack_limit_threads-5.0
[5.0] Increase the stack size limit for running llvm codegen threads …
2019-04-04 12:13:35 -07:00
Arnold Schwaighofer e97ed4a3cf [5.1] Increase the stack size limit for running llvm codegen threads to 8MB
Without this compilation may fail in llvm because we run out of stack space. The
limit for the main thread is 8MB on mac osx but 512KB for other threads.

rdar://47787344
2019-04-03 18:55:17 -07:00
najacque a13f4127d1
Merge pull request #23766 from najacque/swift-5.0-branch
bumping compiler version number to 5.0.1
2019-04-03 15:59:38 -07:00
najacque 4bcb7a1b0c update types-5-to-4.swift test 2019-04-03 13:00:53 -07:00
najacque c224970f2a bumping compiler version number to 5.0.1 2019-04-03 09:39:19 -07:00
Ted Kremenek 780f5abe2d
Merge pull request #23675 from eeckstein/fix-irgen-enums-5.0
[5.0] IRGen: Test all of the payload bits if there are not extra inhabitants
2019-04-02 12:51:27 -07:00
Ted Kremenek 9f820320a8
Merge pull request #23717 from xedin/rdar-49371608-5.0
[5.0][ConstraintSystem] Delay adding contextual requirements until parent …
2019-04-02 12:50:48 -07:00
Ted Kremenek 39c525e9c1
Merge pull request #23718 from apple/mracek/5.0-tsan-coroutines-fix
[5.0] IRGen: Move coroutine passes to be scheduled before tsan
2019-04-02 12:49:42 -07:00
Ted Kremenek 2a5440f5e2
Merge pull request #23660 from DavidGoldman/swift-5.0-branch
Add DebugPrefixMap remapping back to module creation
2019-04-02 12:48:34 -07:00
Arnold Schwaighofer e4520e2522 Fix test for linux 2019-04-02 08:58:11 -07:00
Arnold Schwaighofer ec736e612f Restrict test to mac x86_64 2019-04-01 13:03:30 -07:00
Arnold Schwaighofer c4e806a3b5 Add a test for the tsan co-routine lowering order change
rdar://48719789
2019-04-01 13:03:26 -07:00
Arnold Schwaighofer 618ed9c163 [5.1] IRGen: Move coroutine passes to be scheduled before tsan
The coroutine transformation passes can't seem to handle tsan'ified
code.

My attempt at reducing a test case failed.

rdar://48719789
2019-04-01 13:03:23 -07:00
Pavel Yaskevich 64ff24cf41 [ConstraintSystem] Delay adding contextual requirements until parent type is opened
`openUnboundGenericType` eagerly tries to add conditional requirements
associated with chain of parents of the given type if type has been
declared inside of constrained extension. But one of the parent types
might be unbound e.g. `A.B` which means it has to be opened, which
by itself, would add such requirements.

Resolves: rdar://problem/49371608
(cherry picked from commit 8e420496b2)
(cherry picked from commit 00907d1205)
2019-04-01 12:19:42 -07:00
Argyrios Kyrtzidis 1b0d7e86b1
Merge pull request #23680 from benlangmuir/50-superclasses
[5.0] [index] Fix infinite loop while looking at superclasses
2019-04-01 09:56:33 -07:00
Ben Langmuir 2ea6c058d8 [index] Fix infinite loop while looking at superclasses
While checking for superclasses in isUnitTest, we need to handle
circular inheritance. For good measure, add tests for protocols as well.

The new API is designed to behave the same as walkInheritedProtocols
except that is walks over superclasses.

rdar://49434989
2019-03-29 16:58:35 -07:00
Arnold Schwaighofer cb92d5ca1b IRGen: Test all of the payload bits if there are not extra inhabitants
rdar://49380548
2019-03-29 16:50:55 -07:00
David Goldman f1514c59ee Swap to use %target-swiftc_driver for test 2019-03-29 13:44:28 -04:00
David Goldman 4ff4f51898 Add test 2019-03-29 13:44:11 -04:00
David Goldman d47c2d9b33 Add DebugPrefixMap remapping back to module creation
This was accidentally removed in commit 10004e.
2019-03-29 13:43:02 -04:00
Mishal Shah 801c8a61da [Preset] Fix cherry-pick from master into swift-5.0-branch by removing skip-test-swiftevolve flag 2019-03-27 18:33:34 -07:00
Bob Wilson 130a414fa9
Merge pull request #23325 from aschwaighofer/improve_string_memory_test-5.0
[5.0] Improve StringMemoryTest.swift
2019-03-15 14:18:23 -07:00