pytorch
00e16179 - [LibTorch] Fix `append_whole_archive` macro (#103348)

Commit
1 year ago
[LibTorch] Fix `append_whole_archive` macro (#103348) `-force_load` is not compiler, but a linker option, and as such should depend on the platform (i.e. MacOS/iOS), rather than on compiler (i.e. clang vs gcc) Otherwise, attempt to link libtorch static with clang results in a cryptic `/usr/bin/ld: -f may not be used without -shared` error on Linux. Pull Request resolved: https://github.com/pytorch/pytorch/pull/103348 Approved by: https://github.com/seemethere
Author
Committer
Parents
Loading