Fix some linking rules to allow path with whitespaces (#42718)
Summary:
Essentially, replace `-Wl,--whole-archive,$<TARGET_FILE:FOO>` with `-Wl,--whole-archive,\"$<TARGET_FILE:FOO>\"` as TARGET_FILE might return path containing whitespaces
Fixes https://github.com/pytorch/pytorch/issues/42657
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42718
Reviewed By: ezyang
Differential Revision: D22993568
Pulled By: malfet
fbshipit-source-id: de878b17d20e35b51dd350f20d079c8b879f70b5