Commit Graph

4 Commits

Author SHA1 Message Date
Arnold Schwaighofer
e1aabc614c Test Frontend/load-pass-plugin.swift requires executable_test
rdar://143945257
2025-01-31 06:19:28 -08:00
Antonio Frighetto
d30af4ca87 [Frontend] Re-enable ASAN builds support in load-pass-plugin test (NFC)
`libTestPlugin.dylib` dynamic library was previously linking against
`libLLVMSupport.a`, which is already linked into the Swift compiler
binary. This caused multiple conflicting definitions of `LLVMSupport`
lib symbols, leading to ODR violations. This issue has been addressed
by linking against `libLLVMSupport` via `-hidden-lLLVMSupport` flag,
ensuring `libLLVMSupport` symbols remain hidden within the plugin,
preventing conflicts with those in the Swift compiler.

Fixes: https://github.com/swiftlang/swift/issues/77771.
2024-12-05 10:01:04 +01:00
Alastair Houghton
5fa6665c78 [Frontend][Tests] Disable load-pass-plugin test for ASAN.
This test is buggy and fails under ASAN (which detects the bug).
See #77771.
2024-11-21 15:04:20 +00:00
Antonio Frighetto
377c03fa7e [Driver][Frontend] Introduce load-pass-plugin option
Allow dynamic loading of LLVM passes via `load-pass-plugin`
option passed to the Swift compiler driver.
2024-11-07 17:25:24 +01:00