pytorch/cmake
Nikita Shulga 00e16179f0 [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
2023-06-10 02:53:37 +00:00
..
External Set make max load when building libtorch (#89237) 2022-11-18 18:55:33 +00:00
Modules lower cmake version requirement in FindSanitizer.cmake (#97073) 2023-04-22 02:02:14 +00:00
Modules_CUDA_fix [BE] Remove fast_nvcc tool (#96665) 2023-03-14 03:17:31 +00:00
public Enable hipSOLVER in ROCm builds (#97370) 2023-05-31 16:53:23 +00:00
Allowlist.cmake
BuildVariables.cmake
Caffe2Config.cmake.in remove unused CAFFE2_VERSION macros (#97337) 2023-03-24 16:02:35 +00:00
CheckAbi.cmake remove abi uncertainty and potential abi conflict (#94306) 2023-02-09 09:54:04 +00:00
cmake_uninstall.cmake.in
Codegen.cmake add explicit vectorization for Half dtype on CPU (#96076) 2023-04-03 10:58:37 +00:00
DebugHelper.cmake
Dependencies.cmake Remove deprecated HIP flags (#102271) 2023-06-01 18:58:48 +00:00
FlatBuffers.cmake [pytorch][PR] Add ability for a mobile::Module to save as flatbuffer (#70201) 2022-01-12 16:30:39 -08:00
GoogleTestPatch.cmake Simplify cmake code (#91546) 2023-02-08 01:05:19 +00:00
IncludeSource.cpp.in CMake: Include instead of copying cpu kernel files (#67656) 2021-11-30 19:13:53 -08:00
iOS.cmake
Metal.cmake [CI] Compile on M1 natively (#95719) 2023-03-01 04:20:42 +00:00
MiscCheck.cmake [BE] Cleanup CMake flag suppressions (#97584) 2023-03-27 18:46:09 +00:00
ProtoBuf.cmake [BE] Cleanup CMake flag suppressions (#97584) 2023-03-27 18:46:09 +00:00
ProtoBufPatch.cmake Migrate PyTorch to C++17 (#85969) 2022-12-08 02:27:48 +00:00
Summary.cmake remove unused CAFFE2_VERSION macros (#97337) 2023-03-24 16:02:35 +00:00
TorchConfig.cmake.in [LibTorch] Fix append_whole_archive macro (#103348) 2023-06-10 02:53:37 +00:00
TorchConfigVersion.cmake.in
VulkanCodegen.cmake [Vulkan] Remove GLSL Code Gen (#91912) 2023-01-10 20:29:47 +00:00
VulkanDependencies.cmake [Vulkan] Remove GLSL Code Gen (#91912) 2023-01-10 20:29:47 +00:00