swift
b3d5181a - Driver: correct profiling symbol preservation on Windows

Commit
4 years ago
Driver: correct profiling symbol preservation on Windows The Windows linker does not support `-u`. Furthermore, the compiler driver does not forward the `-u` option to the linker. We correctly use the `/include:` option from the linker. This should ensure that the symbol is preserved even with `/opt:ref`. This spelling should be compatible with both lld and link, which should provide sufficient portability. Take the opportunity to make it more obvious that the two parameters are creating a pair that will be concatenated by using a braced initializer. See https://docs.microsoft.com/en-us/cpp/build/reference/include-force-symbol-references?view=msvc-160 for more details on the option.
Author
Committer
Parents
Loading