Skip to content

ECMEnableSanitizers: fix greedy linker parameter replacment

If the parameter '-Wl,--no-undefined-version' is present on the linker command line, the removal of '-Wl,--no-undefined' will leave us with simply '-version' on the command line, which will fail the link step with an unknown argument '-version' error message on the Clang compiler.

Add a space to make sure we don't match partial overlapping flags.

Merge request reports