/InferAsanLibs COFF directive

When Microsoft introduced ASAN support on MSVC, it also created a new COFF directive called “InferAsanLibs” which LINK.EXE uses to determine which libs it should link to when ASAN is enabled.
Despite having an option to turn this off, the COFF directive is always present if compiling with ASAN enabled.

lld currently does not support this directive, making it impossible to link object files compiled with MSVC’s ASAN. What would be the proper way to fix this in the lld side? Ignore the directive with a warning? Reimplement the feature?

1 Like

Are there any plans to fix this? Currently ASan is unusable on this toolchain.

FYI this was fixed recently and backported to 16.0.3