This is an archive of the discontinued LLVM Phabricator instance.

[Windows] This fixes modules to enable generation of size files
Needs ReviewPublic

Authored by omjavaid on Jul 19 2023, 3:50 AM.

Details

Summary

LLVM testsuite was unable to generate size file on windows because of abnormal path generation and permission issues.
This patch fixes both these issues by allowing creation of copy instead of symlinks on windows and using SHELL_PATH cmake
expression for fixing size file path on windows.

Diff Detail

Event Timeline

omjavaid created this revision.Jul 19 2023, 3:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2023, 3:50 AM
omjavaid requested review of this revision.Jul 19 2023, 3:50 AM
mstorsjo added inline comments.Aug 2 2023, 4:02 AM
cmake/modules/CopyDir.cmake
29

This bit looks straightforward and obviously correct.

cmake/modules/TestSuite.cmake
69

Can you elaborate (extend the description of the patch/commit message) about what the paths looked like before and what they look like after SHELL_PATH?