[llvm] [CMake] Enable CMP0179 alongside CMP0156 for deduplication on LLD (PR #116497)

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 09:11:56 PST 2024


https://github.com/compnerd commented:

I understand that LLD has ignored the requirements for ELF semantics. Please test with BFD. I expect that we need to disable this policy for BFD and gold to successfully link. We can add an additional case for that if you want.

```cmake
if(APPLE OR WIN32 OR LLVM_ENABLE_LLD)
  ...
endif()
```

However, if BFD and gold are able to link properly ignoring the symbol resolution semantics (and the output is the same), then this seems reasonable.

https://github.com/llvm/llvm-project/pull/116497


More information about the llvm-commits mailing list