Commit Graph

11 Commits

Author SHA1 Message Date
Rintaro Ishizaki
a61ed80813 [Macros] Track macro dependency separately in module trace
Macro plugins are not normal Swift modules, track them differently.
Add "swiftmacros" field to the JSON file.

rdar://118013482
2024-01-19 12:56:02 -08:00
Rintaro Ishizaki
de14ca728b [Macros] Track macro dylib path dependencies when using plugin server
Shared library plugin paths were not recorded as dependencies. Record
them when loading libraries in the plugin server.

rdar://119324830
2023-12-07 10:45:45 -08:00
Rintaro Ishizaki
c587705924 Revert "XFAIL macro tests failing in ASAN bot"
This reverts commit 26122f6f80.
2023-12-04 13:38:54 -08:00
Becca Royal-Gordon
26122f6f80 XFAIL macro tests failing in ASAN bot 2023-12-04 11:08:27 -08:00
Daniel Rodríguez Troitiño
5d2e4a380c [test] Replace %swift-build-cxx-plugin with %swift-build-c-plugin (#70188)
As pointed out in https://github.com/apple/swift/pull/70136#discussion_r1411417454
the substitution name does not make sense because we are compiling
C code, not C++.

This should not introduce any behavioural changes.
2023-12-04 09:24:35 -08:00
Saleem Abdulrasool
d0a8c4e56d Merge pull request #68318 from compnerd/plugin-helper-helper-helper
test: introduce a helper for building mock plugins
2023-09-04 13:16:39 -07:00
Saleem Abdulrasool
af79bc2d3f test: introduce a helper for building mock plugins
Introduce a helper for mock plugins as `-rpath` is not a portable
construct.  This allows running more of the macro tests on Windows.
2023-09-04 11:02:25 -07:00
Saleem Abdulrasool
c549028f88 test: sink -no-toolchain-stdlib-rpath into lit
This is a platform specific option and should be handled by lit patterns
rather than encoded into the tests.
2023-09-04 09:07:27 -07:00
Saleem Abdulrasool
3bf039bfec tests: replace shell with python for portability
Replace the process_fine_grained_swiftdeps.sh with a python equivalent
(which also preserves the horrendous handling of YAML and even
"faithfully" replicates the horrible global variables).  This enables a
number of tests on Windows although the instigating macro test is not
yet enabled due to the need for further tweaks to the tests.
2023-09-03 11:49:31 -07:00
Doug Gregor
a41c36934b [CMake] Fix host library builds and rpaths for testing macros
This enables running macro tests on Linux.
2023-05-28 22:20:25 -07:00
Rintaro Ishizaki
a551c01d6a [Macros] Track plugin dependencies
* Factor out ASTContext plugin loading to newly introduced 'PluginLoader'
* Insert 'DependencyTracker' to 'PluginLoader'
* Add dependencies right before loading the plugins

rdar://104938481
2023-04-25 10:50:32 -07:00